:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #d9e1ea;
    --text: #111827;
    --muted: #475569;
    --accent: #2563eb;
    --accent-soft: #e8f0ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "SUIT Variable", "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

[data-lang-content] {
    display: none;
}

html[data-active-lang="en"] [data-lang-content="en"],
html[data-active-lang="ko"] [data-lang-content="ko"] {
    display: block;
}

.page-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 32px;
    padding: 14px 0 20px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-mark {
    color: var(--text);
    font-size: 1rem;
}

.top-links {
    display: inline-flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: center;
    gap: 28px;
    align-items: center;
}

.top-links a {
    color: var(--muted);
    font-size: 0.95rem;
}

.top-links a:hover {
    color: var(--accent);
}

.top-links a[aria-current="page"] {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.doc-title {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.01em;
}

.doc-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.lang-switch select {
    min-height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
}

.section {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.section {
    margin-top: 16px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.button-link.is-primary {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.button-link.is-secondary {
    color: var(--text);
    background: var(--surface);
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 22px;
}

.section-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.section-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 12px;
}

.grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.card h3,
.card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.card p,
.card li {
    color: var(--muted);
    line-height: 1.7;
}

.card p:last-child {
    margin-bottom: 0;
}

.meta-list,
.check-list,
.policy-list {
    margin: 0;
    padding-left: 18px;
}

.meta-list li,
.check-list li,
.policy-list li {
    margin: 8px 0;
}

.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    padding: 18px 16px;
    color: var(--muted);
    line-height: 1.72;
}

.callout {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.callout p {
    margin: 0;
    line-height: 1.7;
}

.policy-copy h2 {
    margin: 28px 0 10px;
    font-size: 1.15rem;
}

.policy-copy p {
    margin: 10px 0;
    color: var(--muted);
    line-height: 1.8;
}

.policy-copy strong {
    color: var(--text);
}

.policy-note {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    line-height: 1.7;
}

.footer-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-note a,
.muted-link {
    color: var(--accent);
}

.page-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.page-footer p {
    margin: 4px 0;
}

@media (max-width: 820px) {
    .page-shell {
        padding: 18px 14px 40px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-links {
        flex: 0 1 auto;
        justify-content: flex-start;
        gap: 14px 18px;
    }

    .section {
        padding: 18px;
    }

    .grid.grid-2,
    .grid.grid-3 {
        grid-template-columns: 1fr;
    }
}
