/* Shared public documents, using the landing page's palette and type. */
:root {
    color-scheme: light;
    --sky: #3da4eb;
    --ink: #082c49;
    --muted: #365770;
    --paper: #eaf5fc;
    --panel: #d6edfc;
    --line: #082c4926;
    font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--sky);
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--sky); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }

.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; transform: translateY(-160%); padding: 12px 18px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .875rem; }
.skip-link:focus { transform: translateY(0); outline-color: var(--ink); }

.site-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 96px; }
.brand { display: inline-flex; flex-shrink: 0; text-decoration: none; border-radius: 4px; }
.brand img { width: 144px; height: auto; }
.primary-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 26px; font-size: .8125rem; font-weight: 500; }
.primary-nav a { position: relative; padding-block: 10px; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { text-decoration: underline; }
.primary-nav a[aria-current] { font-weight: 600; }
.primary-nav a[aria-current]::after { content: ''; position: absolute; height: 3px; width: 14px; bottom: 1px; left: calc(50% - 7px); border-radius: 3px; background: var(--ink); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; text-decoration: none; border: 1px solid var(--ink); border-radius: 30px; color: #fff; background: var(--ink); transition: background .2s, transform .2s; }
.button:hover { background: #164464; transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 10px 18px; white-space: nowrap; font-size: .75rem; font-weight: 500; }
.button > span:last-child { font-size: 1.125rem; line-height: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .625rem; font-weight: 600; line-height: 1.7; letter-spacing: .16em; }
.eyebrow > span { font-size: 1rem; letter-spacing: 0; line-height: 1; }

.legal-main { padding-block: 62px 85px; }
.document-heading { max-width: 950px; }
.document-heading .eyebrow { margin-bottom: 22px; }
.document-heading h1 { font-size: clamp(3rem, 4.7vw, 4.25rem); line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; }
.document-description { max-width: 680px; margin-top: 24px; font-size: 1.0625rem; line-height: 1.8; }
.updated { display: flex; align-items: center; gap: 9px; font-size: .75rem; margin-top: 24px; margin-bottom: 42px; }
.updated::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding: 48px; border-radius: 32px; background: var(--paper); }
.legal-toc { align-self: start; position: sticky; top: 28px; max-height: calc(100dvh - 56px); overflow-y: auto; border: 1px solid #082c4912; border-radius: 18px; background: var(--panel); scrollbar-width: thin; scrollbar-color: #36577066 transparent; }
.toc-details { padding: 24px 20px; }
.toc-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; font-size: .625rem; letter-spacing: .12em; }
.toc-details > summary::-webkit-details-marker { display: none; }
.toc-details > summary > span { font-size: 1.1rem; transform: rotate(-90deg); transition: transform .2s; }
.toc-details[open] > summary > span { transform: rotate(0); }
.legal-toc ol { list-style: none; margin: 19px 0 0; padding: 0; font-size: .8125rem; line-height: 1.65; }
.legal-toc li + li { margin-top: 14px; }
.legal-toc a { display: block; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-copy { min-width: 0; font-size: 1rem; line-height: 1.85; color: var(--muted); overflow-wrap: break-word; }
.legal-copy .intro { font-size: 1.0625rem; line-height: 1.85; color: var(--ink); padding-bottom: 32px; }
.legal-copy p { margin-block: 16px; }
.legal-copy h2 { margin: 0 0 17px; font-size: 1.375rem; letter-spacing: -.025em; line-height: 1.45; }
.legal-copy section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.legal-copy section:first-of-type { margin-top: 0; }
.legal-copy ul, .legal-copy ol { padding-left: 23px; margin-block: 18px; }
.legal-copy li { margin-block: 12px; padding-left: 4px; }
.legal-copy li::marker { color: var(--ink); }
.legal-copy strong { color: var(--ink); font-weight: 600; }
.legal-copy a { color: var(--ink); overflow-wrap: anywhere; text-decoration-color: #082c4970; transition: text-decoration-color .2s; }
.legal-copy a:hover { text-decoration-color: var(--ink); }
.back-top { display: inline-flex; margin-top: 35px; padding-bottom: 4px; border-bottom: 1px solid #082c4959; text-decoration: none; font-size: .8125rem; }

.support-layout { margin-top: 42px; padding: 48px max(48px, calc((100% - 800px) / 2)); border-radius: 32px; background: var(--paper); }
.support-layout .intro { margin-top: 0; padding-bottom: 12px; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.support-layout section { margin-top: 36px; padding-top: 30px; }
.support-layout .contact { margin: 20px 0 40px; padding: 30px 32px; border: 1px solid #082c4912; border-radius: 20px; background: var(--panel); }
.support-layout .contact h2 { margin-bottom: 12px; }
.support-layout .contact p:last-child { margin-bottom: 0; font-size: .9375rem; }
.support-layout .contact a { display: inline-block; font-size: clamp(1.125rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.5; letter-spacing: -.025em; text-decoration: underline; }

.site-footer { padding-bottom: 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 28px; border-block: 1px solid var(--line); }
.footer-top p, .footer-contact { font-size: .8125rem; }
.footer-contact { text-decoration: none; }
.footer-contact:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 25px; font-size: .6875rem; }
.footer-bottom nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; font-size: .75rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
    .wrap { width: calc(100% - 72px); }
    .site-header { grid-template-columns: 1fr auto; gap: 0 24px; min-height: 0; padding-top: 24px; }
    .primary-nav { grid-column: 1 / -1; grid-row: 2; gap: 10px 32px; padding: 12px 0 18px; }
    .legal-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 36px; padding: 36px; }
    .toc-details { padding: 22px 18px; }
    .support-layout { padding-inline: 48px; }
}

@media (max-width: 850px) {
    .wrap { width: calc(100% - 48px); }
    .legal-main { padding-block: 44px 65px; }
    .document-heading h1 { font-size: clamp(2.8rem, 6.5vw, 3.6rem); }
    .legal-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px; border-radius: 26px; }
    .legal-toc { position: static; max-height: none; overflow: visible; }
    .toc-details { padding: 22px 24px; }
    .legal-toc ol { columns: 2; column-gap: 30px; margin-top: 20px; }
    .legal-toc li { break-inside: avoid; margin-top: 0; margin-bottom: 12px; }
    .legal-copy .intro { padding-bottom: 26px; }
    .support-layout { padding: 32px; border-radius: 26px; }
    .footer-top { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 620px) {
    .wrap { width: calc(100% - 40px); }
    .site-header { gap: 0 14px; padding-top: 20px; }
    .brand img { width: 130px; }
    .header-actions { gap: 12px; }
    .site-header { grid-template-columns: 1fr; row-gap: 16px; }
    .header-actions { grid-row: 2; justify-content: flex-start; }
    .primary-nav { grid-row: 3; }
    .header-cta { display: none; }
    .primary-nav { justify-content: flex-start; gap: 6px 21px; padding-block: 15px 8px; font-size: .75rem; }
    .primary-nav a { padding-block: 8px; }
    .document-heading .eyebrow { margin-bottom: 18px; font-size: .5625rem; }
    .legal-main { padding-block: 35px 50px; }
    .document-heading h1 { font-size: clamp(1.85rem, 8vw, 3rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
    .document-description { margin-top: 20px; font-size: .9375rem; line-height: 1.8; }
    .updated { margin-top: 22px; margin-bottom: 30px; font-size: .6875rem; align-items: baseline; }
    .legal-layout { gap: 28px; padding: 24px 20px; border-radius: 22px; }
    .toc-details { padding: 19px 18px 9px; }
    .toc-details:not([open]) { padding-bottom: 19px; }
    .toc-details > summary { font-size: .5625rem; }
    .legal-toc ol { columns: 1; margin-top: 18px; font-size: .8125rem; }
    .legal-toc li { margin-bottom: 12px; }
    .legal-copy { font-size: .9375rem; line-height: 1.85; }
    .legal-copy .intro { font-size: 1rem; padding-bottom: 24px; }
    .legal-copy h2 { font-size: 1.25rem; line-height: 1.5; margin-bottom: 15px; }
    .legal-copy section { margin-top: 30px; padding-top: 25px; }
    .legal-copy ul, .legal-copy ol { padding-left: 20px; }
    .legal-copy li { padding-left: 2px; }
    .support-layout { margin-top: 30px; padding: 26px 20px; border-radius: 22px; }
    .support-layout .intro { font-size: 1.125rem; padding-bottom: 10px; }
    .support-layout .contact { padding: 22px 20px; margin-bottom: 31px; border-radius: 16px; }
    .support-layout .contact p:last-child { font-size: .875rem; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 17px; padding-block: 24px; }
    .footer-top p, .footer-contact { font-size: .75rem; }
    .footer-bottom { align-items: flex-start; flex-direction: column-reverse; gap: 22px; font-size: .625rem; }
    .footer-bottom nav { gap: 12px 20px; font-size: .6875rem; }
}

@media (max-width: 360px) {
    .wrap { width: calc(100% - 32px); }
    .primary-nav { gap: 6px 16px; }
    .legal-layout, .support-layout { padding-inline: 16px; }
    .toc-details { padding-inline: 15px; }
    .support-layout .contact { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
    .button:hover { transform: none; }
}
