/* Shared styling for the public CaliFit pages (privacy policy, account
   deletion, landing). Deliberately dependency-free: no fonts, no CDN, no
   analytics — a privacy policy that phones home to a third party is a bad look
   and would itself need disclosing.

   Neutrals carry a slight green bias off the brand accent rather than being
   pure grey, and headings are set in a serif against a sans body: these are
   legal documents, and they should read like documents rather than like more
   app UI. */

:root {
  --bg: #fbfcfb;
  --surface: #f2f5f3;
  --ink: #12181a;
  --muted: #5c6a66;
  --line: #e2e8e4;
  --accent: #15803d;
  --accent-soft: #edf7f1;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f0e;
    --surface: #141a17;
    --ink: #e6eae7;
    --muted: #93a29c;
    --line: #232b27;
    --accent: #4ade80;
    --accent-soft: #12211a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 22px 96px;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
}

.wrap { max-width: 68ch; margin: 0 auto; }

/* ---- masthead ---- */

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 36px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

header img { width: 42px; height: 42px; border-radius: 11px; }

header .name {
  font: 600 19px/1.2 var(--sans);
  letter-spacing: -0.01em;
}

header .sub { color: var(--muted); font-size: 13px; }

/* ---- headings ---- */

h1 {
  font: 600 40px/1.15 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 14px;
}

h2 {
  font: 600 25px/1.3 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 52px 0 14px;
}

/* The policy is cited by section number, so the numeral is structure worth
   showing — set in the accent, hanging where there's room for it. */
h2 .n {
  font: 600 13px/1 var(--sans);
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

h3 {
  font: 650 16px/1.4 var(--sans);
  letter-spacing: 0.01em;
  margin: 28px 0 6px;
}

/* ---- prose ---- */

p { margin: 0 0 16px; }

.meta {
  font: 13px/1.7 var(--sans);
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.meta .k {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 650; }

ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin: 8px 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---- tables ---- */

/* Tables are the most likely thing to overflow a phone, so they scroll inside
   their own box rather than making the whole page scroll sideways. */
.table-scroll { overflow-x: auto; margin: 20px 0 24px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: 15px;
  line-height: 1.55;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom-color: var(--ink);
}

/* ---- emphasis blocks ---- */

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 28px 0;
}

.callout p:last-child { margin-bottom: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin: 18px 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font: 700 13px/1 var(--sans);
  display: grid;
  place-items: center;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer a { color: var(--muted); }
