:root {
    --brand-blue: #2563eb;
    --brand-blue-dark: #1d4ed8;
    --brand-blue-soft: #eff6ff;
    --brand-red: #ef4444;
    --ink: #0f172a;
    --copy: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.68), transparent 28rem),
        linear-gradient(180deg, #ffffff 0, #f8fafc 28rem, #ffffff 70rem);
    color: var(--copy);
}

a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.site-header {
    height: 72px;
    padding: 0 max(24px, calc((100vw - 1200px) / 2));
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;
    width: auto;
    height: 46px;
    object-fit: contain;
}

.header-nav {
    gap: 0.75rem;
}

.lang-switch {
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.lang-switch .sep {
    display: none;
}

.lang-switch a {
    min-width: 40px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.lang-switch a:hover {
    color: var(--brand-blue);
}

.lang-switch a.active {
    background: #ffffff;
    color: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.header-back {
    padding: 0.7rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand-blue);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.header-back:hover {
    border-color: #93c5fd;
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4.25rem;
    overflow: visible;
    text-align: left;
}

.hero::before {
    top: 0.5rem;
    right: 1rem;
    left: auto;
    width: 23rem;
    height: 23rem;
    background: radial-gradient(circle, rgba(191, 219, 254, 0.72), rgba(239, 246, 255, 0) 68%);
    animation: none;
}

.hero-badge {
    margin: 0 0 1.25rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid #bfdbfe;
    background: rgba(239, 246, 255, 0.9);
    color: var(--brand-blue);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    background: none;
    color: var(--brand-blue);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
    background-clip: initial;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.065em;
    animation: none;
}

.hero-date {
    margin-top: 1.35rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.content {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.toc {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.toc-label {
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc ol {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.52rem 0.55rem;
    border-radius: 0.75rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.toc a span {
    color: var(--brand-blue);
    font-variant-numeric: tabular-nums;
}

.toc a:hover {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.policy-body {
    min-width: 0;
}

.intro-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid #bfdbfe;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #eff6ff, #ffffff 72%);
    color: #334155;
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.07);
}

.intro-card::before {
    background: var(--brand-blue);
}

.intro-card strong {
    color: var(--brand-blue-dark);
}

.policy-section {
    scroll-margin-top: 96px;
    margin-bottom: 1rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);
}

.section-heading {
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--line);
}

.section-num {
    width: 2rem;
    height: 2rem;
    flex: none;
    border: 1px solid #bfdbfe;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    box-shadow: none;
}

.section-heading h2 {
    color: var(--ink);
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.policy-section h3 {
    color: #1e293b;
}

.policy-section p,
.policy-section li {
    color: var(--copy);
}

.policy-section ul li::before {
    width: 0.38rem;
    height: 0.38rem;
    background: var(--brand-blue);
}

.policy-section a {
    color: var(--brand-blue);
}

.contact-card {
    border: 1px solid #bfdbfe;
    background: var(--brand-blue-soft);
}

.page-footer {
    padding: 3.5rem 1.5rem 4rem;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.footer-back {
    color: var(--brand-blue);
}

@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }

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

@media (max-width: 640px) {
    .site-header {
        height: 64px;
        padding: 0 1rem;
    }

    .header-logo {
        min-width: 0;
    }

    .header-logo img {
        height: 34px;
    }

    .header-nav {
        gap: 0.45rem;
    }

    .lang-switch a {
        min-width: 34px;
        padding: 0.38rem 0.5rem;
    }

    .header-back {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        padding: 0;
    }

    .hero {
        padding: 4rem 1.25rem 3rem;
    }

    .hero::before {
        right: -8rem;
        width: 18rem;
        height: 18rem;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 14vw, 3.75rem);
    }

    .content {
        gap: 1rem;
        padding: 0 1rem 3.5rem;
    }

    .toc {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .toc ol {
        grid-template-columns: 1fr;
    }

    .intro-card,
    .policy-section {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 1.2rem;
    }
}

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