/* Shared stylesheet for the long-form legal pages (privacy.html, terms.html).
   Utility document layout on the brand tokens — a readable text column rather than the
   centred card the invite/delete-account pages use. Same self-hosted Noto Sans, same
   colours. No Figma frame: these are legal documents, not app screens. */

/* Noto Sans Latin — the design's face, served from this box. SIL OFL 1.1. */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/noto-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noto Sans Georgian, same family — the browser fetches only the file the page needs. */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/noto-sans-georgian.woff2) format('woff2');
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

:root {
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --border: #DEDED4;
  --text: #2B1511;
  --text-muted: #575B4B;
  --brand: #4F6B3C;
  --radius: 16px;

  --font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

/* The readable column. */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px calc(48px + env(safe-area-inset-bottom)) 20px;
}

/* ---------- brand lockup: mark over wordmark ---------- */
.lockup { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.lockup img { width: 96px; height: 57.8px; display: block; }
.lockup .wordmark {
  margin-top: -1px;
  font-size: 24px;
  line-height: 33px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--brand);
}

/* ---------- type ---------- */
h1 {
  margin: 0 0 4px 0;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text);
}

/* Georgian titles hold words too long for a phone line at 28px; scale them to the column. */
html[lang="ka"] h1 { font-size: min(28px, calc((100vw - 40px) / 13.2)); }

h2 {
  margin: 32px 0 8px 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}

p, li { color: var(--text); }
p { margin: 0 0 12px 0; }

.updated { margin: 0 0 8px 0; color: var(--text-muted); font-size: 14px; }
.muted { color: var(--text-muted); }

ul { margin: 0 0 12px 0; padding-left: 22px; }
li { margin: 0 0 6px 0; }

strong { font-weight: 700; }

a { color: var(--brand); }

/* A quiet callout for the notes at the top of each doc (draft/legal-review note). */
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- data table (privacy sub-processors) ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface); font-weight: 700; }

hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
footer a { color: var(--brand); }
