/* Legal pages on the marketing site (terms / privacy / refund).
   Loaded on top of styles.css, which supplies the nav, footer and palette.
   The prose itself is generated from src/content/legal.mjs — see
   scripts/build-legal-pages.mjs. */

.legal { padding: 56px 24px 80px; }
.legal-head { max-width: 46em; }
.legal-head h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; color: var(--ink); font-weight: 850; margin: 0; }
.legal-updated { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.legal-lede {
  margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(79, 140, 255, .06); font-size: 15.5px; line-height: 1.6; color: var(--ink);
}

/* Two columns on desktop: the document, and a table of contents that stays put.
   A privacy policy is a reference document — people arrive looking for one
   section, not to read it front to back. */
.legal-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 46px; margin-top: 38px; align-items: start; }
.legal-main { min-width: 0; }
/* styles.css sets a global section{padding:96px 0}; the legal sections set
   their own rhythm, so cancel it and let margin-top alone space them. */
.legal-main section { margin-top: 48px; scroll-margin-top: 90px; padding: 0; }
.legal-main section:first-child { margin-top: 0; }
.legal-main h2 { font-size: 19px; letter-spacing: -.01em; color: var(--ink); font-weight: 800; margin: 0 0 12px; }
.legal-main p { margin: 0 0 12px; font-size: 15px; line-height: 1.68; color: var(--muted); }
.legal-main ul { margin: 0 0 12px; padding-left: 22px; }
.legal-main li { font-size: 15px; line-height: 1.68; color: var(--muted); margin-bottom: 8px; }
.legal-main strong { color: var(--ink); font-weight: 700; }
.legal-main a { color: var(--blue, #4f8cff); text-decoration: underline; text-underline-offset: 2px; }
.legal-main a:hover { text-decoration: none; }

/* The processor table. Wide content scrolls in its own box rather than pushing
   the page sideways on a phone. */
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
.legal-main table { width: 100%; min-width: 34rem; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.legal-main th { padding: 9px 14px 9px 0; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-main td { padding: 11px 14px 11px 0; vertical-align: top; color: var(--muted); border-bottom: 1px solid var(--line); line-height: 1.55; }
.legal-main tbody tr:last-child td { border-bottom: 0; }

.legal-aside { position: sticky; top: 96px; }
.legal-toc h2 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.legal-toc a { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-decoration: none; margin-bottom: 9px; }
.legal-toc a:hover { color: var(--ink); }

@media (max-width: 940px) {
  .legal-body { grid-template-columns: 1fr; gap: 0; }
  /* The contents list moves above the document and stops sticking — a floating
     sidebar on a phone is just something covering the text. */
  .legal-aside { position: static; order: -1; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .legal-toc a { display: inline-block; margin: 0 14px 8px 0; }
}
