:root {
    color-scheme: dark;
    --navy: #0b0f23;
    --surface: #141b3a;
    --surface-soft: #1b2348;
    --purple: #6c4dff;
    --gold: #ffc107;
    --text: #ffffff;
    --muted: #a5adc3;
    --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 80% 0%, rgba(108, 77, 255, 0.18), transparent 32rem),
        var(--navy);
    color: var(--text);
    font-family: "Noto Sans KR", Arial, sans-serif;
}

a { color: inherit; }

.policy-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 15, 35, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner,
.policy-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: auto;
    height: 60px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.policy-shell { padding: 64px 0 80px; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 50px);
    letter-spacing: -0.045em;
}

.summary {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.version-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 20px;
    margin: 36px 0 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.field-label,
.meta-label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

select {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid rgba(108, 77, 255, 0.55);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.version-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4px;
}

.version-meta strong { color: var(--gold); }

.document-frame {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.direct-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    text-underline-offset: 4px;
}

.current-mode body,
.current-only {
    background: #fff;
}

.current-mode .policy-header,
.current-mode .policy-shell > :not(.document-frame),
.current-mode .policy-footer,
.current-only .policy-header,
.current-only .policy-shell > :not(.document-frame),
.current-only .policy-footer {
    display: none;
}

.current-mode .policy-shell,
.current-only .policy-shell {
    width: 100%;
    margin: 0;
    padding: 0;
}

.current-mode .document-frame,
.current-only .document-frame {
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.policy-footer {
    padding: 26px 20px;
    border-top: 1px solid var(--line);
    color: #737b94;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 680px) {
    .header-inner,
    .policy-shell { width: min(100% - 28px, 1120px); }
    .header-inner { min-height: 68px; }
    .brand img { height: 50px; }
    .header-nav { gap: 2px; }
    .header-nav a { padding: 8px; font-size: 12px; }
    .policy-shell { padding-top: 44px; }
    .version-panel { grid-template-columns: 1fr; padding: 18px; }
    .document-frame { min-height: 760px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
