:root {
    color-scheme: dark;
    --navy-950: #031123;
    --navy-900: #061a34;
    --navy-800: #0b274b;
    --panel: #fffaf0;
    --panel-soft: #f6efe0;
    --ink: #17243a;
    --muted: #647089;
    --gold: #d8ae52;
    --gold-light: #f2d483;
    --line: rgba(216, 174, 82, 0.34);
    --white: #fffaf0;
    --focus: #f7d46f;
    --shadow: rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 8%, rgba(216, 174, 82, 0.16), transparent 28rem),
        radial-gradient(circle at 84% 18%, rgba(57, 125, 137, 0.18), transparent 30rem),
        linear-gradient(rgba(3, 17, 35, 0.58), rgba(3, 17, 35, 0.82)),
        url("background.png") center top / cover fixed,
        var(--navy-950);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    transform: translateY(-150%);
    z-index: 20;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    background: var(--gold-light);
    color: #10223f;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 58px;
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-light);
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nav-links a,
.language-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 250, 240, 0.24);
    border-radius: 999px;
    padding: 0.62rem 0.95rem;
    color: #f9f2df;
    text-decoration: none;
    font-size: 0.92rem;
    background: rgba(3, 17, 35, 0.36);
    backdrop-filter: blur(12px);
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.language-link:hover {
    border-color: var(--gold-light);
    background: rgba(216, 174, 82, 0.16);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    padding: clamp(34px, 8vw, 86px) 0 clamp(26px, 5vw, 54px);
}

.hero--split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.45rem, 8vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #dce6f5;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.72;
}

.hero-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: rgba(6, 26, 52, 0.68);
    box-shadow: 0 24px 60px var(--shadow);
}

.hero-card img {
    width: 92px;
    height: 92px;
    border-radius: 21px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.hero-card p {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0.78rem 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #11233e;
}

.button-secondary {
    border: 1px solid rgba(255, 250, 240, 0.28);
    color: #fff9ea;
    background: rgba(255, 255, 255, 0.06);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
    gap: 24px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: rgba(6, 26, 52, 0.74);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.toc h2 {
    margin: 0 0 14px;
    color: var(--gold-light);
    font-size: 1.15rem;
}

.toc ol,
.toc ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 1.1rem;
}

.toc a {
    color: #edf4ff;
    text-decoration-color: rgba(242, 212, 131, 0.5);
    text-underline-offset: 3px;
}

.policy,
.panel {
    border: 1px solid rgba(234, 214, 169, 0.78);
    border-radius: 8px;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.985), rgba(246, 239, 224, 0.97));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.31);
}

.policy {
    padding: clamp(28px, 5vw, 58px);
}

.panel {
    padding: clamp(24px, 4vw, 38px);
}

.updated,
.note {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

.lead {
    margin: 0 0 28px;
    color: #33445f;
    font-size: 1.08rem;
    line-height: 1.8;
}

.policy section,
.panel section {
    padding: 26px 0;
    border-top: 1px solid #ded7ca;
}

.policy h2,
.panel h2 {
    margin: 0 0 12px;
    color: #102a4e;
    font-size: clamp(1.38rem, 3vw, 1.82rem);
    line-height: 1.28;
}

.policy h3,
.panel h3 {
    margin: 18px 0 8px;
    color: #17345e;
    font-size: 1.15rem;
}

.policy p,
.policy li,
.panel p,
.panel li {
    color: #36455d;
    font-size: 1rem;
    line-height: 1.78;
}

.policy p,
.panel p {
    margin: 0 0 13px;
}

.policy ul,
.panel ul {
    margin: 0 0 13px;
    padding-left: 1.25rem;
}

.policy a,
.panel a {
    color: #0f5d9f;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.callout {
    margin: 22px 0;
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 16px 18px;
    background: rgba(216, 174, 82, 0.16);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 10px 0 32px;
}

.info-card {
    border: 1px solid rgba(242, 212, 131, 0.32);
    border-radius: 8px;
    padding: 20px;
    background: rgba(6, 26, 52, 0.62);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.info-card h2 {
    margin: 0 0 10px;
    color: var(--gold-light);
    font-size: 1.32rem;
}

.info-card p {
    margin: 0;
    color: #dbe5f2;
    line-height: 1.68;
}

.info-card a {
    color: #fff5cf;
    font-weight: 800;
    text-underline-offset: 3px;
}

.language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 250, 240, 0.18);
    margin-top: 36px;
    padding-top: 24px;
    color: #cbd8ea;
    font-size: 0.92rem;
    line-height: 1.65;
}

.site-footer a {
    color: var(--gold-light);
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .site-header,
    .hero--split,
    .layout {
        grid-template-columns: 1fr;
    }

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

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

    .toc {
        position: static;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        background-attachment: scroll;
    }

    .shell {
        width: min(100% - 24px, 1120px);
        padding-top: 14px;
    }

    .brand {
        font-size: 1rem;
    }

    .brand img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .nav-links a,
    .language-link {
        min-height: 40px;
        padding: 0.55rem 0.75rem;
        font-size: 0.86rem;
    }

    .hero {
        padding-top: 26px;
    }

    h1 {
        font-size: clamp(2.35rem, 14vw, 4rem);
    }

    .policy,
    .panel,
    .hero-card,
    .toc,
    .info-card {
        border-radius: 8px;
    }
}

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