:root {
    color-scheme: light;
    --cream: #fff9e9;
    --paper: #fffdf7;
    --ink: #242125;
    --muted: #625e57;
    --coral: #b8322b;
    --line: #e3ddce;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    padding: 28px;
    background: #edf3e7;
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--coral);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid #276585;
    outline-offset: 5px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 12px 18px;
    background: var(--paper);
    z-index: 1;
}

.skip-link:focus {
    top: 12px;
}

.legal-shell {
    max-width: 1040px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 40px;
    border-bottom: 1px solid var(--line);
}

.brand img {
    display: block;
    width: 130px;
    height: auto;
}

.site-header nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-header nav a,
.site-footer nav a {
    display: inline-block;
    padding-block: 8px;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

[aria-current="page"] {
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
}

main {
    padding: 48px clamp(24px, 6vw, 80px) 64px;
}

.document-header {
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.035em;
}

.document-subtitle {
    margin: 0 0 12px;
    font-size: 1.125rem;
}

.document-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.contents {
    margin-bottom: 40px;
    padding: 16px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
}

.contents summary {
    cursor: pointer;
    font-weight: 700;
}

.contents ol {
    columns: 2;
    column-gap: 36px;
    margin-bottom: 4px;
    padding-left: 22px;
    font-size: 0.875rem;
}

.contents li {
    break-inside: avoid;
    padding: 4px 0 4px 4px;
}

.legal-section + .legal-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

h2 {
    margin: 0 0 16px;
    font-size: 1.375rem;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 16px;
}

.legal-section > :last-child {
    margin-bottom: 0;
}

table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

caption {
    margin-bottom: 8px;
    text-align: left;
    font-weight: 700;
}

th,
td {
    padding: 14px 16px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

thead th {
    background: #eaf0d8;
}

th:first-child {
    width: 34%;
}

tbody th {
    background: var(--cream);
    font-weight: 600;
}

.site-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}

.site-footer p {
    margin: 12px 0 0;
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .legal-shell {
        border-radius: 18px;
    }

    .site-header,
    .site-footer {
        padding: 20px 24px;
    }

    .site-header {
        gap: 12px;
    }

    .site-header nav {
        gap: 8px 20px;
    }

    .brand img {
        width: 112px;
    }

    main {
        padding: 32px 20px 40px;
    }

    .contents {
        padding: 14px 18px;
    }

    .contents ol {
        columns: 1;
    }

    table {
        font-size: 0.875rem;
    }

    th,
    td {
        padding: 10px 8px;
    }

    th:first-child {
        width: 38%;
    }
}

@media print {
    body {
        padding: 0;
        background: white;
        color: black;
        font-size: 10pt;
    }

    .legal-shell {
        max-width: none;
        border: 0;
        background: white;
    }

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

    main {
        padding: 0;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        break-after: avoid;
        font-size: 14pt;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    tr {
        break-inside: avoid;
    }

    table {
        font-size: 9pt;
    }

    a {
        color: inherit;
    }
}
