@font-face {
    font-family: Inter;
    src: url('/static/fonts/inter-var.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #20252d;
    --muted: #616873;
    --accent: #b90019;
    --line: #e2e4e8;
    --paper: #ffffff;
    --canvas: #f7f8fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
    border-radius: 3px;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -6rem;
    z-index: 10;
    padding: .6rem 1rem;
    background: var(--paper);
}
.skip-link:focus { top: 1rem; }
.container { width: min(1160px, calc(100% - 4rem)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 192px; height: auto; }
.header-links { display: flex; align-items: center; gap: 1.75rem; font-size: .875rem; font-weight: 600; }
.header-links a { text-decoration: none; color: var(--muted); }
.header-links .app-link {
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: .6rem;
    padding: .55rem 1rem;
}
.header-links a:hover { color: var(--accent); }
.hero { padding-block: 4rem 2.5rem; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.75rem; height: 2px; background: currentColor; }
h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 700; }
.intro { max-width: 660px; margin: 1.25rem 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.document-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: var(--muted); font-size: .8rem; }
.document-meta p { margin: 0; }
.policy-tabs { display: flex; gap: 2rem; border-bottom: 1px solid var(--line); margin-top: 2rem; }
.policy-tabs a { padding: .75rem 0; text-decoration: none; font-size: .9rem; font-weight: 650; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.policy-tabs a[aria-current='page'] { color: var(--accent); border-bottom-color: var(--accent); }
.document-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 4rem; }
.sidebar { position: sticky; top: 2rem; }
.contents h2 { margin: .3rem 0 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contents ol { list-style: none; padding: 0; margin: 0; counter-reset: sections; }
.contents li { counter-increment: sections; }
.contents a { display: flex; gap: .75rem; padding: .4rem 0; text-decoration: none; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.contents a::before { content: counter(sections, decimal-leading-zero); color: var(--accent); font-size: .7rem; padding-top: .1rem; font-variant-numeric: tabular-nums; }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.sidebar-note { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.sidebar-note strong { color: var(--ink); }
.sidebar-note p { margin: 0 0 .5rem; }
.document { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 2.5rem 3rem; box-shadow: 0 4px 24px #20252d03; }
.overview { background: #fcf4f5; border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; border-radius: 0 .5rem .5rem 0; margin-bottom: 2.5rem; }
.overview h2 { font-size: 1rem; margin: 0 0 .4rem; }
.overview p { margin: 0; color: #5e4348; font-size: .9rem; }
.document section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.document section:target h2 { color: var(--accent); }
.document section h2 { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; }
.section-number { flex-shrink: 0; color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.document h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.document p { margin: 0 0 1rem; }
.document p:last-child { margin-bottom: 0; }
.document ul { margin: .75rem 0 1rem; padding-left: 1.25rem; }
.document li { padding-left: .25rem; margin: .5rem 0; }
.document li::marker { color: var(--accent); }
.document address { font-style: normal; }
.contact-details { display: grid; gap: .25rem; }
.document a { overflow-wrap: anywhere; }
.document-end { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 1.75rem; color: var(--muted); font-size: .75rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.redirect-page { max-width: 640px; margin: 12vh auto; padding: 2rem; }
.redirect-page h1 { font-size: 2rem; }

@media (max-width: 960px) {
    .document-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 2rem; }
    .document { padding: 2rem; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 2rem); }
    .header-inner { min-height: 80px; gap: 1rem; }
    .brand img { width: 154px; }
    .header-links { gap: 1rem; font-size: .8rem; }
    .company-link { display: none; }
    .header-links .app-link { padding: .45rem .7rem; }
    .hero { padding-block: 2.5rem 1.5rem; }
    .intro { font-size: 1rem; }
    .policy-tabs { gap: 1.5rem; margin-top: 1.5rem; }
    .document-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2rem; }
    .sidebar { position: static; min-width: 0; }
    .contents h2 { margin-bottom: .5rem; }
    .contents ol { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem .2rem .75rem; }
    .contents li { flex-shrink: 0; }
    .contents a { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); white-space: nowrap; }
    .sidebar-note { display: none; }
    .document { padding: 1.5rem; border-radius: .75rem; }
    .overview { padding: 1rem; margin-bottom: 2rem; }
    .document section h2 { font-size: 1.15rem; }
    .document-end { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media print {
    @page { margin: 18mm; }
    body { background: white; color: black; font-size: 10pt; }
    .container { width: 100%; }
    .header-inner { min-height: 60px; }
    .brand img { width: 160px; }
    .skip-link, .header-links, .policy-tabs, .sidebar, .document-end, .site-footer { display: none; }
    .hero { padding: 1.5rem 0; }
    h1 { font-size: 28pt; }
    .intro { font-size: 11pt; }
    .document-layout { display: block; padding: 0; }
    .document { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    .overview { background: none; padding: .75rem 1rem; margin-bottom: 1.5rem; }
    .document section + section { margin-top: 1rem; padding-top: 1rem; }
    .document section h2, .document h3 { break-after: avoid; }
    p, li { orphans: 3; widows: 3; }
    a { color: inherit; }
}
