:root {
    --ink: #0d2032;
    --navy: #003d73;
    --navy-deep: #06233d;
    --gold: #c6a87c;
    --paper: #f4f7f9;
    --line: #d8e1e8;
    --muted: #566b7d;
    --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
}
a { color: inherit; }
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: #000;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px max(20px, calc((100% - 1160px) / 2));
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff;
    background: rgba(6,35,61,.96);
    backdrop-filter: blur(14px);
}
.context-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.18rem; font-weight: 750; text-decoration: none; }
.context-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(198,168,124,.65);
    border-radius: 14px;
    color: #f1dfbf;
    background: #0d2032;
    font-weight: 800;
}
.public-nav { display: flex; align-items: center; gap: 22px; }
.public-nav a { padding: 8px 2px; color: rgba(255,255,255,.88); font-size: .9rem; font-weight: 700; text-decoration: none; }
.public-nav a:hover, .public-nav a:focus-visible, .public-nav a.is-active { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.locale-link { min-width: 40px; text-align: center; }
.trust-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 124px) 0 clamp(58px, 8vw, 92px);
    color: #fff;
    background:
        radial-gradient(circle at 78% 15%, rgba(198,168,124,.28), transparent 30%),
        linear-gradient(135deg, #06233d, #003d73 68%, #155d8b);
}
.trust-hero::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -50%;
    width: 58%;
    height: 90%;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    transform: rotate(-8deg);
}
.trust-hero .shell { position: relative; z-index: 1; max-width: 960px; }
.eyebrow { margin: 0 0 14px; color: #8c6a33; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.trust-hero .eyebrow, .legal-hero .eyebrow { color: #e8cf9d; }
.trust-hero h1, .legal-hero h1 { margin: 0; max-width: 920px; color: #fff; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.trust-hero > .shell > p:not(.eyebrow) { max-width: 820px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.03rem, 1.7vw, 1.24rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: .8rem; }
.language-notice { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 8px; color: #5b441c; background: #fff8e9; }
.library { padding-block: clamp(60px, 8vw, 104px); }
.library-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); gap: 40px; align-items: end; }
.library-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
.library-heading > p { margin: 0; color: var(--muted); }
.document-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 26px; }
.document-filter {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #c6d2dc;
    border-radius: 999px;
    color: #263f54;
    background: #fff;
    font: inherit;
    font-size: .86rem;
    font-weight: 750;
    cursor: pointer;
}
.document-filter:hover, .document-filter.is-active { border-color: var(--navy-deep); color: #fff; background: var(--navy-deep); }
.document-filter:focus-visible, .document-card a:focus-visible, .download-button:focus-visible { outline: 3px solid #d4b771; outline-offset: 3px; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.document-card {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(8,38,62,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.document-card:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(8,38,62,.12); }
.document-card[hidden] { display: none; }
.card-meta { display: flex; justify-content: space-between; gap: 14px; color: #795b27; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.document-card h3 { margin: 26px 0 12px; font-size: 1.24rem; line-height: 1.28; }
.document-card p { margin: 0 0 26px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.card-actions a { color: var(--navy); font-weight: 800; text-underline-offset: 4px; }
.pack-card { color: #fff; border-color: var(--navy-deep); background: linear-gradient(145deg,var(--navy-deep),var(--navy)); }
.pack-card .card-meta, .pack-card h3, .pack-card p, .pack-card a { color: #fff; }
.legal-document { padding-block: 42px 96px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: #637789; font-size: .88rem; }
.breadcrumbs a { color: var(--navy); }
.legal-hero { padding: clamp(30px,5vw,60px); border-radius: 26px; color: #fff; background: linear-gradient(145deg,var(--navy-deep),var(--navy)); }
.legal-hero h1 { max-width: 960px; font-size: clamp(2.1rem,4.4vw,4rem); overflow-wrap: anywhere; }
.legal-summary { max-width: 800px; margin: 22px 0; color: rgba(255,255,255,.82); font-size: 1.06rem; }
.legal-hero dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 28px 0; }
.legal-hero dl div { min-width: 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.06); }
.legal-hero dt { color: #e2c485; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.legal-hero dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.legal-hero code { color: inherit; font-size: .73rem; }
.download-button { display: inline-flex; padding: 12px 17px; border-radius: 999px; color: var(--navy-deep); background: #fff; font-weight: 800; text-decoration: none; }
.legal-layout { display: grid; grid-template-columns: minmax(210px,260px) minmax(0,1fr); gap: 28px; align-items: start; margin-top: 28px; }
.legal-toc { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(8,38,62,.06); }
.legal-toc h2 { margin: 0 0 12px; font-size: 1rem; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin: 8px 0; color: #607487; font-size: .82rem; line-height: 1.4; }
.legal-toc a { color: var(--navy); text-underline-offset: 3px; }
.toc-download { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; }
.legal-body { min-width: 0; }
.legal-body section { margin: 0 0 18px; scroll-margin-top: 96px; padding: clamp(24px,4vw,42px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.legal-body h2 { margin: 0 0 14px; font-size: clamp(1.3rem,2.3vw,1.9rem); }
.legal-body p, .legal-body li { color: #40576a; line-height: 1.72; }
.legal-body a { color: var(--navy); overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid var(--gold); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--navy-deep); }
.public-footer { padding: 32px max(20px,calc((100% - 1160px)/2)); color: rgba(255,255,255,.82); background: #061b2e; }
.public-footer div { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.public-footer a { color: #fff; }

@media (max-width: 900px) {
    .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .legal-hero dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
}
@media (max-width: 680px) {
    .shell { width: min(100% - 28px,1160px); }
    .public-header { align-items: flex-start; gap: 10px; padding: 10px 14px; }
    .context-brand { margin-top: 2px; }
    .public-nav { flex-wrap: wrap; justify-content: flex-end; gap: 3px 12px; }
    .public-nav a { font-size: .78rem; }
    .library-heading, .document-grid { grid-template-columns: 1fr; }
    .document-card { min-height: 0; }
    .legal-hero dl { grid-template-columns: 1fr; }
    .legal-document { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .document-card { transition: none; }
}
