:root {
    color-scheme: light;
    --ink: #111820;
    --muted: #5e6974;
    --line: #dce2e8;
    --paper: #f2f4f6;
    --surface: #ffffff;
    --blue: #2454d3;
    font-family: Inter, Pretendard, "Noto Sans KR", "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 92% 0%, rgba(36, 84, 211, 0.08), transparent 30rem),
        var(--paper);
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px clamp(18px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
}

.language-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.language-nav a,
.document-nav a {
    padding: 7px 9px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.language-nav a.active,
.language-nav a:hover,
.document-nav a:hover {
    color: var(--blue);
    background: rgba(36, 84, 211, 0.08);
}

.legal-page {
    width: min(860px, calc(100% - 32px));
    margin: 34px auto 60px;
}

.legal-card {
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 14px 42px rgba(17, 24, 32, 0.07);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

h1 {
    margin: 0;
    font-size: clamp(29px, 5vw, 43px);
    line-height: 1.15;
}

.effective {
    margin: 12px 0 34px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.effective time {
    margin-left: 5px;
}

.legal-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.75;
}

.document-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

@media (max-width: 640px) {
    .legal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .language-nav {
        justify-content: flex-start;
    }
}
