/* Static long-form pages (terms, privacy, cookie policy, editorial policy, referral terms, FAQ).
   Loaded after /app.css, which supplies the site chrome (.site-header, .site-footer, .ag-btn, .ag-mark) and the
   Tailwind preflight reset; everything below sets the reading column. Palette and type follow public/home-next.html. */

.lg-page {
  --lg-paper: #fafaf8; --lg-card: #fff; --lg-tint: #f4f5f1; --lg-line: #e7e9e4; --lg-line-soft: #f0f1ed;
  --lg-ink: #121512; --lg-body: #2b302c; --lg-mute: #545b55; --lg-faint: #69706a; --lg-soft: #5b625c;
  --lg-green: #087556; --lg-green-deep: #05523f;
  --lg-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --lg-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --lg-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lg-quiet: 0 0 0 1px rgba(18, 21, 18, 0.12);
  min-height: 100vh;
  margin: 0;
  background: var(--lg-paper);
  color: var(--lg-body);
  font-family: var(--lg-sans);
  -webkit-font-smoothing: antialiased;
}

/* Wordmark link (the Wordmark component's Tailwind classes are not available to static HTML). */
.lg-page .ag-wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--lg-ink); font: 600 18px/1 var(--lg-sans); letter-spacing: -0.02em; text-decoration: none; }
.lg-page .ag-wordmark:hover { color: var(--lg-ink); }

/* Reading column */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 24px 8px; font-size: 16px; line-height: 1.7; color: var(--lg-body); }
.legal h1 { margin: 0; font: 400 clamp(36px, 4.4vw, 48px)/1.08 var(--lg-display); letter-spacing: -0.022em; color: var(--lg-ink); font-variation-settings: "opsz" 36; text-wrap: balance; }
.legal .meta { margin: 14px 0 0; font: 12px/1.5 var(--lg-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lg-faint); }
.legal section { margin-top: 32px; }
.legal section + section { padding-top: 32px; box-shadow: inset 0 1px 0 var(--lg-line-soft); }
.legal .meta + section { margin-top: 44px; }
.legal h2 { margin: 0; font: 400 26px/1.2 var(--lg-display); letter-spacing: -0.018em; color: var(--lg-ink); font-variation-settings: "opsz" 36; text-wrap: balance; }
.legal h3 { margin: 0; font-size: 16.5px; line-height: 1.4; font-weight: 500; color: var(--lg-ink); }
.legal p { margin: 14px 0 0; text-wrap: pretty; }
.legal h2 + p { margin-top: 12px; }
.legal strong { font-weight: 600; color: var(--lg-ink); }
.legal a { color: var(--lg-green); text-decoration: underline; text-decoration-color: rgba(8, 117, 86, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--lg-green-deep); text-decoration-color: currentColor; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--lg-tint); box-shadow: var(--lg-quiet); font: 0.84em var(--lg-mono); color: var(--lg-ink); white-space: nowrap; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 6px; }

/* FAQ: same column, items as the home page's accordion. */
.legal.faq .meta { margin-top: 12px; font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--lg-display); letter-spacing: -0.018em; text-transform: none; color: var(--lg-soft); font-variation-settings: "opsz" 36; }
.legal.faq section { margin-top: 56px; padding-top: 0; box-shadow: none; }
.legal.faq h2 { margin-bottom: 8px; font: 500 12px/1.5 var(--lg-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lg-faint); }
.legal.faq details { box-shadow: inset 0 -1px 0 var(--lg-line); }
.legal.faq details:first-of-type { box-shadow: inset 0 1px 0 var(--lg-line), inset 0 -1px 0 var(--lg-line); }
.legal.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; }
.legal.faq summary::-webkit-details-marker { display: none; }
.legal.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; box-shadow: var(--lg-quiet); font: 400 16px/1 var(--lg-sans); color: var(--lg-mute); transition: transform 0.2s ease; }
.legal.faq details[open] summary::after { transform: rotate(45deg); }
.legal.faq summary:hover h3 { color: var(--lg-green-deep); }
.legal.faq summary:focus-visible { outline: 2px solid var(--lg-green); outline-offset: 2px; border-radius: 4px; }
.legal.faq details p { margin: 0; padding: 0 48px 22px 0; font-size: 15px; line-height: 1.65; color: var(--lg-mute); }

@media (max-width: 640px) {
  .legal { padding-top: 48px; }
  .legal h2 { font-size: 23px; }
  .legal.faq details p { padding-right: 0; }
  .legal code { white-space: normal; overflow-wrap: anywhere; }
}
