:root {
    color-scheme: light dark;
    --background: #f4f3ef;
    --background-top: #fcfbf9;
    --background-mid: #f2f1ec;
    --background-bottom: #eceae3;
    --surface: #fffefa;
    --surface-raised: #ffffff;
    --surface-accent: #edf3f0;
    --ink: #1b1d1c;
    --secondary: #3f4a46;
    --muted: #636b67;
    --accent: #3c7263;
    --accent-deep: #2e6253;
    --accent-soft: #dce8e3;
    --warning: #d39a57;
    --danger: #b85d59;
    --border: oklch(84% 0.012 163);
    --border-strong: oklch(72% 0.025 163);
    --focus: oklch(58% 0.095 163);
    --shadow-sm: 0 0.25rem 0.75rem oklch(30% 0.02 163 / 0.06);
    --shadow-md: 0 1.25rem 3rem oklch(30% 0.02 163 / 0.09);
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-body: 1rem;
    --text-lead: 1.25rem;
    --text-heading: clamp(2.5rem, 7vw, 4.75rem);
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --content: 48rem;
    --page: 78rem;
    --sticky-header: 5.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background-bottom);
}

body {
    min-width: 20rem;
    margin: 0;
    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
    background:
        linear-gradient(oklch(48% 0.04 163 / 0.025) 1px, transparent 1px),
        linear-gradient(90deg, oklch(48% 0.04 163 / 0.025) 1px, transparent 1px),
        linear-gradient(155deg, var(--background-top) 0%, var(--background-mid) 48%, var(--background-bottom) 100%);
    background-size: 4rem 4rem, 4rem 4rem, auto;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-kerning: normal;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent-deep);
    font-weight: 650;
    text-decoration-color: var(--border-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.2rem;
    border-radius: 0.25rem;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    max-width: 11ch;
    margin-bottom: var(--space-6);
    margin-left: -0.045em;
    font-size: var(--text-heading);
    font-weight: 780;
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 740;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: var(--space-3);
    font-size: 1.0625rem;
    font-weight: 720;
    letter-spacing: -0.015em;
}

p,
li {
    max-width: 72ch;
}

strong {
    font-weight: 720;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: max(var(--space-4), env(safe-area-inset-top));
    left: max(var(--space-4), env(safe-area-inset-left));
    min-height: 44px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--accent-deep);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    transform: translateY(-200%);
}

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

.site-header {
    position: sticky;
    z-index: 20;
    top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 2rem), var(--page));
    min-height: var(--sticky-header);
    margin-inline: auto;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-accent) 100%);
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc(50% - 50vw);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: var(--space-3);
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.brand span,
.document-meta {
    display: grid;
}

.brand strong {
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.brand small,
.document-meta span:last-child {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.document-meta {
    justify-items: end;
    line-height: 1.35;
    text-align: right;
}

.document-meta span:first-child {
    font-size: var(--text-sm);
    font-weight: 720;
}

.page-shell {
    display: grid;
    width: min(calc(100% - 2rem), var(--page));
    margin-inline: auto;
    padding-block: var(--space-8) var(--space-16);
}

.section-nav {
    display: flex;
    gap: var(--space-2);
    margin: 0 -1rem var(--space-8);
    padding: var(--space-2) 1rem var(--space-3);
    overflow-x: auto;
    scrollbar-color: var(--border-strong) transparent;
    scrollbar-width: thin;
}

.section-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
    font-size: var(--text-sm);
    line-height: 1.25;
    text-decoration: none;
}

.section-nav a span {
    color: var(--accent);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 780;
    letter-spacing: 0.06em;
}

main {
    min-width: 0;
    max-width: var(--content);
}

.hero {
    position: relative;
    isolation: isolate;
    margin-bottom: var(--space-8);
    padding: clamp(2rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 8%, oklch(66% 0.09 163 / 0.2), transparent 35%),
        linear-gradient(145deg, var(--surface-raised), var(--surface-accent));
    box-shadow: var(--shadow-md);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -4rem;
    bottom: -6rem;
    width: 15rem;
    height: 15rem;
    border: 2.5rem solid oklch(55% 0.075 163 / 0.09);
    border-radius: 42% 58% 52% 48%;
    transform: rotate(22deg);
}

.eyebrow {
    margin-bottom: var(--space-4);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 780;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-summary {
    max-width: 38rem;
    margin-bottom: var(--space-8);
    color: var(--secondary);
    font-size: var(--text-lead);
    line-height: 1.5;
    text-wrap: pretty;
}

.document-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: var(--space-3);
    margin-bottom: 0;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.document-facts div {
    display: grid;
    gap: var(--space-1);
}

.document-facts dt {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-facts dd {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    font-weight: 680;
}

.at-a-glance {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-16);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--accent-deep);
    color: #f7faf8;
    box-shadow: var(--shadow-md);
}

.at-a-glance .eyebrow,
.at-a-glance h2,
.at-a-glance strong {
    color: #f7faf8;
}

.at-a-glance .eyebrow {
    opacity: 0.78;
}

.at-a-glance h2 {
    margin-bottom: 0;
}

.snapshot-list {
    display: grid;
    gap: var(--space-3);
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.snapshot-list li {
    padding-left: var(--space-2);
}

.snapshot-list li::marker {
    color: #b9d1c8;
}

.legal-section {
    scroll-margin-top: calc(var(--sticky-header) + 1.5rem);
    padding-block: var(--space-12);
    border-top: 1px solid var(--border);
}

.section-heading {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.section-heading > span {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--accent);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
    font-weight: 780;
}

.section-heading h2 {
    margin: 0;
}

.legal-section > p,
.legal-section > ul,
.legal-section > ol {
    color: var(--secondary);
}

.legal-section > p + p,
.legal-section > p + ul,
.legal-section > p + ol,
.legal-section > ul + p,
.legal-section > ol + p {
    margin-top: var(--space-6);
}

.legal-section ul,
.legal-section ol {
    display: grid;
    gap: var(--space-3);
    padding-left: 1.35rem;
}

.legal-section li {
    padding-left: var(--space-2);
}

.legal-section li::marker {
    color: var(--accent);
    font-weight: 750;
}

.definition-grid {
    display: grid;
    gap: 0;
    margin-block: var(--space-8);
    border-block: 1px solid var(--border);
}

.definition-grid > div {
    padding-block: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.definition-grid > div:last-child {
    border-bottom: 0;
}

.definition-grid h3 {
    color: var(--accent-deep);
}

.definition-grid p {
    margin-bottom: 0;
    color: var(--secondary);
}

.process-list {
    counter-reset: process;
    margin-block: var(--space-8);
    padding-left: 0 !important;
    list-style: none;
}

.process-list li {
    position: relative;
    min-height: 3rem;
    padding-left: 4rem;
    counter-increment: process;
}

.process-list li::before {
    content: counter(process, decimal-leading-zero);
    position: absolute;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.9rem;
    background: var(--surface-accent);
    color: var(--accent);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    font-weight: 780;
}

.callout {
    margin-block: var(--space-8);
    padding: var(--space-6);
    border-left: 0.3rem solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-accent);
}

.callout.caution {
    border-left-color: var(--warning);
    background: #fbf3e8;
}

.callout h3 {
    color: var(--ink);
}

.callout p {
    margin-bottom: 0;
    color: var(--secondary);
}

.contact-card,
.related-policy {
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

.contact-card {
    display: grid;
    gap: var(--space-6);
    align-items: center;
    margin-bottom: var(--space-6);
}

.contact-card h3 {
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.contact-card p {
    margin-bottom: 0;
    color: var(--secondary);
}

.contact-link,
.related-policy > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: fit-content;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--accent-deep);
    color: #f7faf8;
    text-decoration: none;
}

.related-policy {
    margin-top: var(--space-8);
    background:
        radial-gradient(circle at 100% 0, oklch(65% 0.08 163 / 0.14), transparent 35%),
        var(--surface-raised);
}

.related-policy h2 {
    max-width: 18ch;
}

.related-policy p:not(.eyebrow) {
    color: var(--secondary);
}

.site-footer {
    display: grid;
    width: min(calc(100% - 2rem), var(--page));
    gap: var(--space-8);
    margin-inline: auto;
    padding-block: var(--space-8) max(var(--space-8), env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-strong);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-brand img {
    border: 1px solid var(--border);
    border-radius: 0.7rem;
}

.footer-brand p,
.copyright {
    margin-bottom: 0;
}

.footer-brand p {
    line-height: 1.3;
}

.footer-brand span,
.copyright {
    color: var(--muted);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (min-width: 40rem) {
    .site-header,
    .page-shell,
    .site-footer {
        width: min(calc(100% - 3rem), var(--page));
    }

    .brand img {
        width: 3.5rem;
        height: 3.5rem;
    }

    .at-a-glance,
    .contact-card {
        grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
    }

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

    .definition-grid > div {
        padding: var(--space-6);
        border-bottom: 1px solid var(--border);
    }

    .definition-grid > div:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid var(--border);
    }

    .definition-grid > div:nth-child(even) {
        padding-right: 0;
    }

    .definition-grid > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .contact-card {
        justify-content: space-between;
    }

    .site-footer {
        grid-template-columns: minmax(14rem, 1fr) auto;
        align-items: center;
    }

    .copyright {
        grid-column: 1 / -1;
    }
}

@media (min-width: 56.25rem) {
    :root {
        --sticky-header: 6rem;
    }

    .page-shell {
        grid-template-columns: minmax(13rem, 17rem) minmax(0, 48rem);
        gap: clamp(2rem, 5vw, 5rem);
        padding-block: var(--space-16) 6rem;
    }

    .section-nav {
        position: sticky;
        top: calc(var(--sticky-header) + 2rem);
        display: grid;
        align-self: start;
        max-height: calc(100vh - var(--sticky-header) - 4rem);
        gap: 0;
        margin: 0;
        padding: var(--space-2) var(--space-4) var(--space-2) 0;
        overflow: auto;
        border-right: 1px solid var(--border);
    }

    .section-nav a {
        justify-content: flex-start;
        min-height: 44px;
        padding: var(--space-2) var(--space-3);
        border: 0;
        border-radius: var(--radius-sm);
        background: transparent;
        box-shadow: none;
        white-space: normal;
    }
}

@media (hover: hover) and (pointer: fine) {
    .brand,
    .section-nav a,
    .contact-link,
    .related-policy > a {
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    }

    .section-nav a:hover {
        border-color: var(--border-strong);
        background: var(--surface-accent);
        color: var(--ink);
    }

    .contact-link:hover,
    .related-policy > a:hover {
        background: var(--accent);
        transform: translateY(-1px);
    }
}

@media (pointer: coarse) {
    .section-nav a,
    .footer-links a {
        min-height: 48px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #141716;
        --background-top: #181a19;
        --background-mid: #151716;
        --background-bottom: #121413;
        --surface: #1d201f;
        --surface-raised: #232625;
        --surface-accent: #29302d;
        --ink: #edece8;
        --secondary: #a8b0ac;
        --muted: #838b87;
        --accent: #5a8a79;
        --accent-deep: #4a7a69;
        --accent-soft: #30453e;
        --warning: #d39a57;
        --danger: #b85d59;
        --border: oklch(35% 0.015 163);
        --border-strong: oklch(48% 0.025 163);
        --focus: oklch(72% 0.09 163);
        --shadow-sm: none;
        --shadow-md: none;
    }

    body {
        background:
            linear-gradient(oklch(72% 0.03 163 / 0.025) 1px, transparent 1px),
            linear-gradient(90deg, oklch(72% 0.03 163 / 0.025) 1px, transparent 1px),
            linear-gradient(155deg, var(--background-top) 0%, var(--background-mid) 48%, var(--background-bottom) 100%);
        background-size: 4rem 4rem, 4rem 4rem, auto;
        font-weight: 390;
    }

    a {
        color: #8eb6a7;
    }

    .site-header::before {
        background: var(--surface);
    }

    .at-a-glance {
        background: #27473d;
    }

    .callout.caution {
        background: #332b22;
    }

    .contact-link,
    .related-policy > a {
        background: #3f7564;
        color: #ffffff;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    :root {
        color-scheme: light;
        --background: #ffffff;
        --surface: #ffffff;
        --surface-raised: #ffffff;
        --surface-accent: #ffffff;
        --ink: #111111;
        --secondary: #222222;
        --muted: #444444;
        --accent: #225b4b;
        --accent-deep: #173e34;
        --border: #bbbbbb;
        --border-strong: #777777;
        --shadow-sm: none;
        --shadow-md: none;
    }

    @page {
        margin: 0.7in;
    }

    body {
        min-width: 0;
        padding: 0;
        background: #ffffff;
        color: #111111;
        font-size: 10.5pt;
    }

    .skip-link,
    .section-nav {
        display: none;
    }

    .site-header,
    .page-shell,
    .site-footer {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding-inline: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .site-header {
        min-height: 0;
        padding-block: 0 0.25in;
        border-radius: 0;
    }

    .site-header::before,
    .hero::after {
        display: none;
    }

    .brand img {
        width: 0.42in;
        height: 0.42in;
    }

    .page-shell {
        padding-block: 0;
    }

    main {
        max-width: none;
    }

    .hero,
    .at-a-glance,
    .contact-card,
    .related-policy,
    .callout {
        break-inside: avoid;
        background: #ffffff;
        color: #111111;
        box-shadow: none;
    }

    .hero {
        padding: 0.3in 0;
        border: 0;
        border-radius: 0;
    }

    .at-a-glance {
        padding: 0.2in;
        border: 1px solid #555555;
    }

    .at-a-glance .eyebrow,
    .at-a-glance h2,
    .at-a-glance strong,
    .at-a-glance li {
        color: #111111;
    }

    .legal-section {
        scroll-margin-top: 0;
        padding-block: 0.25in;
    }

    .contact-link,
    .related-policy > a {
        min-height: 0;
        padding: 0;
        background: transparent;
        color: #111111;
        text-decoration: underline;
    }

    .legal-section a[href^="http"]::after,
    .related-policy a[href]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        font-weight: 400;
    }

    .site-footer {
        margin-top: 0.3in;
        padding-block: 0.2in 0;
    }
}
