/* Legal pages (/terms, /privacy, /app-terms, /intellectual-property). Same tokens, type and footer as the home page. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Fallback'; src: local('Arial'); size-adjust: 101.8%; }

:root {
  --navy: #263A61; --ink: #1D1D1F; --text: #3F444C; --rule: #D2D2D7; --focus: #4D72AD;
  --gutter: clamp(20px, calc(20px + (100vw - 390px) * 0.0724), 96px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 400 17px/1.65 'Geist', 'Geist Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #FFFFFF; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rule); }
.bar-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar-home { display: block; padding: 10px 0; }
.bar-home svg { display: block; width: 104px; height: auto; }
.bar-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar-btn:hover { background: var(--navy); color: #FFFFFF; }
@media (max-width: 480px) { .bar-btn { height: 38px; padding: 0 14px; font-size: 15px; } }
/* Very small phones (320-400px): the button reads just "Apply", as on the home page, so the bar fits. */
@media (max-width: 400px) { .bar-long { display: none; } }

/* document */
.doc { max-width: 760px; padding: clamp(40px, calc(40px + (100vw - 390px) * 0.0381), 80px) 0 clamp(56px, calc(56px + (100vw - 390px) * 0.0381), 96px); }
.kicker { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
h1 { margin: 10px 0 0; font-size: clamp(36px, calc(36px + (100vw - 390px) * 0.0191), 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); }
.updated { margin: 14px 0 0; font-size: 15px; color: var(--text); }
.toc { margin-top: 32px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 8px; }
.toc-title { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 1; font-size: 15px; line-height: 1.5; }
.toc li { padding: 3px 0; break-inside: avoid; }
.toc-part { margin: 14px 0 0; font-size: 15px; font-weight: 600; break-after: avoid; }
.toc-part + ol { margin-top: 4px; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 40px; } }
.doc-body { margin-top: 12px; }
.doc-body h2 { margin: 40px 0 0; font-size: clamp(21px, calc(21px + (100vw - 390px) * 0.0029), 24px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.doc-body h2.part { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: clamp(24px, calc(24px + (100vw - 390px) * 0.0048), 30px); letter-spacing: -0.03em; }
.doc-body h3 { margin: 36px 0 0; font-size: clamp(20px, calc(20px + (100vw - 390px) * 0.0029), 23px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.doc-body p { margin: 14px 0 0; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; }
.doc-body li { margin: 6px 0 0; }
.doc-body .caps { font-size: 15px; line-height: 1.6; letter-spacing: 0.01em; }
.doc-body hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--rule); }
.doc-body strong { font-weight: 600; }

/* footer (same as the home page) */
.foot-inner { border-top: 1px solid var(--rule); padding: 22px 0 36px; font-size: 14px; color: var(--text); }
.foot-row { display: flex; align-items: center; }
.foot-row > a { padding: 12px 0; margin: -12px 0; }
.foot-logo { display: block; width: 70px; height: 13px; opacity: .85; }
.foot-legal { margin-top: 18px; }
.legal { margin: 0; max-width: 860px; font-size: 13px; line-height: 1.55; color: var(--text); }
.foot-meta { margin: 10px 0 0; font-size: 13px; color: var(--text); }
.legal-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; }
.legal-links a { padding: 6px 0; }
.foot-base { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.foot-base .foot-meta { margin: 0; }
.foot-base .legal-links { margin-top: 0; display: flex; }
/* Wide screens: copyright left, legal links right, lined up under the menu (David, 2026-10-22). When both do not fit on one line (iPad mini, phones turned sideways) the links drop to their own line, left-aligned (2026-10-23). */
@media (min-width: 700px) { .foot-base { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; } }
