/* ============================================================================
   Legal pages: privacy, website privacy, terms. Loaded after site.css.
   These pages load no JavaScript, on purpose: they must render for app store
   and carrier reviewers with scripting off. The nav uses <details>, so it
   works without any.
   ========================================================================= */

.legal-doc {
  /* Some fonts ligate "(c)" into a copyright sign. Terms 17.2 lists clauses
     (a), (b) and (c), so ligatures stay off in these documents. */
  font-variant-ligatures: no-common-ligatures;
  max-width: 72ch;
  margin: 0 auto;
  padding: 64px var(--pad) 96px;
}
.legal-doc h1 { font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.025em; }
.legal-updated { margin-top: 12px; font-size: 0.92rem; color: var(--body); }
.legal-doc h2 { font-weight: 500; font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.015em; margin-top: 52px; scroll-margin-top: 96px; }
.legal-doc h3 { font-weight: 500; font-size: 1.06rem; line-height: 1.4; margin-top: 32px; scroll-margin-top: 96px; }
.legal-doc p { margin-top: 16px; font-size: 1.02rem; line-height: 1.75; color: var(--body); }
.legal-doc a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* The global reset strips list markers; these documents need them. */
.legal-doc ul.legal-list { margin-top: 16px; padding-left: 22px; list-style: disc; }
.legal-doc ol.legal-list-numbered { margin-top: 16px; padding-left: 22px; list-style: decimal; }
.legal-doc ul.legal-list li, .legal-doc ol.legal-list-numbered li { margin-top: 8px; font-size: 1.02rem; line-height: 1.75; color: var(--body); }

/* Tables scroll inside their wrapper so the page never scrolls sideways. */
.legal-table-scroll { margin-top: 20px; overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; line-height: 1.6; min-width: 420px; }
.legal-table th { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; color: var(--body); padding: 14px 18px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.legal-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: top; }
.legal-table td:first-child { color: var(--ink); }
.legal-table tr:last-child td { border-bottom: 0; }

/* The arbitration notice must be conspicuous, so it is boxed in the dark
   panel colour, the strongest treatment on the page. */
.legal-notice { margin-top: 28px; padding: 22px 26px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.legal-notice p { margin-top: 0; font-size: 0.96rem; color: #ffffff; }
.legal-notice a { color: #7fd6ff; }

.legal-toc { margin-top: 40px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.legal-doc .legal-toc-title { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); margin-top: 0; }
/* The link labels carry their own numbers, so the list must not add more. */
.legal-toc ol { margin: 14px 0 0; list-style: none; padding-left: 0; }
.legal-toc li { margin-top: 2px; }
.legal-toc a { display: inline-block; padding: 10px 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .legal-doc { padding: 40px var(--pad) 72px; }
  .legal-toc { padding: 20px; }
  .legal-doc h2 { margin-top: 44px; }
}
