/* Shared styling for the document pages: /privacy, /terms, /support,
   /delete-account.

   A separate stylesheet rather than four copies of index.html's inline CSS —
   that file is 78KB of landing-page machinery (device mockups, carousels,
   marquees) and none of it applies to a page of prose. The tokens below are
   lifted from its :root so the two never drift apart visually. */

:root {
  --stone: #DCDBD7;
  --ink: #0C0D0C;
  --dark: #101211;
  --mint: #3FC79A;
  --green: #0F9A70;
  --red: #D9584E;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── header ───────────────────────────────────────────────────────────────── */
.topbar { padding: 26px 0 8px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
/* The brand mark, frozen: forest ring, beam with its leading edge at 40°,
   centre dot (docs/brand/brand-guide.md, assets/brand/mark-small-light.svg). */
.brand .mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid #0F7A4A; position: relative; overflow: hidden;
  background: conic-gradient(from -60deg, rgba(15,122,74,0) 0deg, rgba(15,122,74,.45) 55deg, rgba(15,122,74,.88) 100deg, rgba(15,122,74,0) 100deg);
}
.brand .mark::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: #0F7A4A;
}
.brand-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.4px; }
.back { font-size: 14px; color: rgba(12,13,12,.55); text-decoration: none; }
.back:hover { color: var(--ink); }

/* ── document ─────────────────────────────────────────────────────────────── */
main { padding: 34px 0 72px; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1.6px; font-weight: 600; margin: 0 0 10px; }
.updated { font-size: 13.5px; color: rgba(12,13,12,.5); margin: 0 0 34px; }
h2 {
  font-size: 20px; letter-spacing: -.6px; font-weight: 600;
  margin: 40px 0 12px; padding-top: 22px;
  border-top: 1px solid rgba(12,13,12,.10);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 30px; }
h3 { font-size: 16px; letter-spacing: -.3px; font-weight: 600; margin: 24px 0 8px; }
p, li { color: rgba(12,13,12,.76); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--green); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; background: rgba(12,13,12,.06);
  padding: 1px 5px; border-radius: 5px;
}

/* A value the operator must fill in before publishing. Deliberately loud:
   shipping "[LEGAL_ENTITY]" to production is worse than shipping nothing, so it
   must be impossible to miss on the rendered page. */
.tbd {
  background: #FFE9A8; color: #6b4d00;
  border-bottom: 1.5px solid #E0AE1F;
  padding: 0 4px; border-radius: 3px;
  font-weight: 600; white-space: nowrap;
}

.card {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px; padding: 22px 24px; margin: 22px 0;
}
.card.warn { background: rgba(217,88,78,.07); border-color: rgba(217,88,78,.22); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(12,13,12,.10); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: rgba(12,13,12,.5); font-weight: 600; }
td { color: rgba(12,13,12,.76); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
details {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px; padding: 16px 20px; margin-bottom: 10px;
}
details[open] { background: rgba(255,255,255,.8); }
summary {
  cursor: pointer; font-weight: 600; letter-spacing: -.3px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: rgba(12,13,12,.4); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details > *:not(summary) { margin-top: 12px; }

/* The footer is the shared site footer (lib/site-shell.ts, class .sf), which
   brings its own scoped CSS; nothing here styles it. */

/* ── trust pages (apps/landing-tools/trust-pages.mjs) ───────────────────── */
.crumbs { font-size: 13px; color: rgba(12,13,12,.5); margin: 0 0 14px; }
.crumbs a { color: rgba(12,13,12,.55); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 18px 0 22px; }
.table-wrap table { margin: 0; }
.table-wrap table.wide { min-width: 640px; }
caption { caption-side: top; text-align: left; font-size: 13px; color: rgba(12,13,12,.55); padding: 0 0 8px; }
tbody th { text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--ink); font-weight: 600; }
pre.cite {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 16px;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px; padding: 14px 16px; color: rgba(12,13,12,.8);
}

.disclaimer { max-width: 520px; line-height: 1.5; }

@media (max-width: 560px) {
  h1 { font-size: 31px; letter-spacing: -1.1px; }
  main { padding-top: 24px; }
}
