/* ==========================================================================
   LiftKit(TM) - legal document pages (/privacy, /terms)
   Palette and type scale mirror assets/css/main.css (WEBSITE-GUIDE.md section 4).

   Deliberately SELF-CONTAINED: these pages must render correctly on main,
   which does not yet carry the landing page's main.css. When the landing page
   lands, the tokens below already match it.

   Fonts are named but NOT fetched. There is no Google Fonts link, so these
   pages make zero third-party requests - appropriate for a privacy policy, and
   it keeps the cookie disclosure short. Once Montserrat/Comfortaa are
   self-hosted per WEBSITE-GUIDE.md section 4.7 they are picked up here
   automatically, with no change needed to this file.
   ========================================================================== */

:root {
  --teal:         #2EC4B6;
  --teal-deep:    #1E8E7E;
  --teal-pale:    #AEDAD5;

  --orange:       #F2A65A;
  --orange-tint:  #FCEFE1;

  --text-strong:  #16302E;
  --text-muted:   #5B6B69;
  --surface:      #FFFFFF;
  --surface-alt:  #F3F7F6;
  --surface-tint: #E4F5F3;
  --surface-dark: #0B3D3D;
  --surface-darker:#072A2A;
  --border:       #D7E3E1;

  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Comfortaa", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

/* No scroll-behavior: smooth here, deliberately. These pages are mostly
   arrived at by deep link - /privacy#delete-account from the app and from the
   Google Play listing, /terms#deposits-and-refunds from the footer and the
   /refund-policy redirect. Smooth scrolling animates the load-time jump, so the
   reader is dropped at the top and scrolled past twelve other sections before
   arriving. An instant jump is correct for a reference document. */

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

a { color: var(--teal-deep); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- REMOVE BEFORE PUBLICATION: draft banner ---------------------- */

.draft-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface-darker);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.draft-bar .wrap { padding-block: 0.6rem; }

/* ---------- header ------------------------------------------------------- */

.site-head { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text-strong); }
.brand img { width: 34px; height: auto; display: block; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------- document ----------------------------------------------------- */

.doc { padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc .wrap { max-width: calc(var(--measure) + 5rem); }

.doc-head { margin-bottom: 2rem; }
.doc-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 0.9rem; }

.updated {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-tint);
  border-radius: 999px; padding: 0.35rem 0.9rem;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  color: var(--teal-deep);
}

.summary {
  margin-top: 1.25rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* ---------- table of contents -------------------------------------------- */

.toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-deep); margin-bottom: 0.9rem;
}
.toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.toc ol ol { margin-top: 0.35rem; padding-left: 1.2rem; font-size: 0.9rem; }

/* ---------- body copy ----------------------------------------------------
   scroll-margin-top keeps a deep link (e.g. /privacy#delete-account, which the
   app and Google Play will use) from landing underneath the sticky header.
   ------------------------------------------------------------------------- */

.doc section { margin-bottom: 2.5rem; scroll-margin-top: 5.5rem; }
.doc h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin-bottom: 0.9rem;
  padding-top: 0.5rem;
}
.doc h3 {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  margin: 1.75rem 0 0.6rem;
  scroll-margin-top: 5.5rem;
}
.doc p { margin: 0 0 1rem; max-width: var(--measure); }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.4rem; max-width: var(--measure); }
.doc li { margin-bottom: 0.45rem; }
.doc li > ul, .doc li > ol { margin-top: 0.45rem; }

.doc table {
  width: 100%; border-collapse: collapse;
  margin: 0 0 1.25rem; font-size: 0.92rem;
}
.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  text-align: left; vertical-align: top;
}
.doc th { background: var(--surface-alt); font-family: var(--font-head); font-size: 0.82rem; }
.table-scroll { overflow-x: auto; margin-bottom: 1.25rem; }
.table-scroll table { margin-bottom: 0; }

.callout {
  background: var(--surface-tint);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

address.contact {
  font-style: normal;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  max-width: var(--measure);
}

.back-to-top { font-size: 0.82rem; }

/* ---------- unresolved items ---------------------------------------------
   Every unknown is marked rather than guessed at. Grep for "[[TODO" before
   publication; none of these may survive to production.
   ------------------------------------------------------------------------- */

.todo {
  background: #FFF3CD;
  border-bottom: 2px solid var(--orange);
  color: #6B4A00;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

p.todo, div.todo {
  display: block;
  background: #FFF3CD;
  border: 1px solid var(--orange);
  border-left: 5px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  max-width: var(--measure);
  font-size: 0.88rem;
  line-height: 1.55;
}

.todo b {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #8A5A00;
  margin-bottom: 0.3rem;
}

/* ---------- footer ------------------------------------------------------- */

.site-foot {
  background: var(--surface-darker);
  color: var(--teal-pale);
  padding-block: 3rem 2.25rem;
  font-size: 0.87rem;
}
.site-foot a { color: #fff; }
.site-foot .brand span { color: #fff; }
.foot-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 0.75rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-foot p { margin: 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}

