:root {
    color-scheme: light;
    --ink: #102a33;
    --ink-soft: #45616a;
    --paper: #fffef9;
    --paper-muted: #f5f7f3;
    --canvas: #eaf0ec;
    --brand: #087f86;
    --brand-dark: #075b61;
    --brand-pale: #dff3ef;
    --accent: #d58b43;
    --rule: #d8e1dc;
    --shadow: 0 22px 60px rgba(16, 42, 51, 0.09);
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 2%, rgba(8, 127, 134, 0.11), transparent 28rem),
        linear-gradient(180deg, #f7faf7 0, var(--canvas) 32rem, #eef3ef 100%);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--brand-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--brand);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(213, 139, 67, 0.5);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.35rem;
    background: var(--ink);
    color: white;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

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

.site-header {
    border-bottom: 1px solid rgba(16, 42, 51, 0.12);
    background: rgba(247, 250, 247, 0.92);
    backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.document-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 650;
}

.document-nav a {
    text-decoration: none;
}

.document-nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.hero {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(3.25rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 8vw, 6.1rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero__summary {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.2vw, 1.38rem);
    line-height: 1.55;
}

.date-stamp {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(16, 42, 51, 0.16);
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.date-stamp strong {
    color: var(--ink);
}

.legal-layout {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto clamp(4rem, 8vw, 8rem);
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.toc {
    position: sticky;
    top: 1.5rem;
    padding: 1.25rem 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.toc h2 {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
}

.toc a {
    display: grid;
    grid-template-columns: 1.7rem 1fr;
    gap: 0.25rem;
    padding: 0.4rem 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.35;
    text-decoration: none;
}

.toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

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

.legal-document {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 4.25rem);
    border: 1px solid rgba(16, 42, 51, 0.1);
    border-radius: 0.35rem;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.legal-document section {
    position: relative;
    padding: 0 0 clamp(2.6rem, 5vw, 4.5rem);
    margin: 0 0 clamp(2.6rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--rule);
}

.legal-document section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.section-label {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-document h2 {
    max-width: 720px;
    margin: 0 0 1.45rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.14;
}

.legal-document h3 {
    margin: 2rem 0 0.65rem;
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: 0.015em;
    line-height: 1.4;
}

.legal-document p {
    margin: 0 0 1rem;
}

.legal-document p:last-child {
    margin-bottom: 0;
}

.legal-document ul,
.legal-document ol {
    padding-left: 1.25rem;
    margin: 0.75rem 0 1.1rem;
}

.legal-document li {
    padding-left: 0.35rem;
    margin-bottom: 0.55rem;
}

.legal-document li::marker {
    color: var(--brand);
}

.callout {
    margin: 1.5rem 0;
    padding: 1.2rem 1.3rem;
    border-left: 4px solid var(--brand);
    background: var(--brand-pale);
}

.callout strong {
    color: var(--brand-dark);
}

.definition-list {
    display: grid;
    grid-template-columns: minmax(130px, 0.3fr) minmax(0, 1fr);
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--rule);
}

.definition-list dt,
.definition-list dd {
    margin: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
}

.definition-list dt {
    padding-right: 1rem;
    color: var(--brand-dark);
    font-weight: 750;
}

.definition-list dd {
    color: var(--ink-soft);
}

.table-wrap {
    width: 100%;
    margin: 1.35rem 0;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 0.3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.91rem;
    line-height: 1.5;
}

th,
td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--paper-muted);
    color: var(--ink);
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--rule);
    background: var(--paper-muted);
}

.contact-card address {
    color: var(--ink-soft);
    font-style: normal;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.25rem;
    background: var(--ink);
    color: white;
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.button-link:hover {
    background: var(--brand-dark);
    color: white;
}

.site-footer {
    padding: 2.5rem 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.84rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
}

.site-footer a {
    color: white;
    font-size: 0.84rem;
}

@media (max-width: 820px) {
    .site-header__inner {
        padding: 0.8rem 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

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

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        columns: 2;
        column-gap: 1.5rem;
    }

    .toc h2 {
        column-span: all;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(2.65rem, 17vw, 4rem);
    }

    .hero--long h1 {
        font-size: clamp(2.45rem, 13.5vw, 3.3rem);
    }

    .toc {
        columns: 1;
    }

    .legal-document {
        padding: 1.25rem;
    }

    .definition-list {
        grid-template-columns: 1fr;
    }

    .definition-list dt {
        padding-bottom: 0.15rem;
        border-bottom: 0;
    }

    .definition-list dd {
        padding-top: 0;
    }

    .contact-card,
    .site-footer__inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media print {
    @page {
        margin: 18mm;
    }

    body {
        background: white;
        color: black;
        font-size: 10.5pt;
    }

    .skip-link,
    .site-header,
    .toc,
    .site-footer {
        display: none;
    }

    .hero,
    .legal-layout {
        width: 100%;
        margin: 0;
        display: block;
    }

    .hero {
        padding: 0 0 12mm;
    }

    .hero h1 {
        font-size: 34pt;
    }

    .legal-document {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .legal-document section {
        break-inside: avoid-page;
    }

    a {
        color: black;
        text-decoration: none;
    }
}
