/* The one stylesheet for every page on curevise.com.
 *
 * System fonts only, and no @import, no url(), no web font — `PUBLIC_SITE §1` makes "this site
 * fetches nothing" a hard property, and `tools/ci/check_site_egress.py` enforces it over a glob.
 * Anything added here that reaches off-origin fails the site lane.
 *
 * It styles the two hand-written pages AND the generated privacy page, so every element in
 * `render_privacy_page`'s closed grammar has a rule below: headings, paragraphs, lists, tables,
 * `hr`, `code`, `strong`/`em`, links.
 */

:root {
  color-scheme: light dark;

  --ink: #16181d;
  --ink-soft: #4a5160;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --rule: #e2ded6;
  --accent: #145c54;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9e7e2;
    --ink-soft: #a5a9b4;
    --paper: #14161a;
    --panel: #1b1e24;
    --rule: #2c313a;
    --accent: #6fd3c2;
    --accent-ink: #0f2a27;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p, li { margin: 0 0 1rem; }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* Tables: the privacy policy's §3 and §6 are both tables, and §6's cells are long. */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--rule);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel);
  font-weight: 600;
}

.table-scroll { overflow-x: auto; }

/* The download page */

.download { margin: 2rem 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.facts dt {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

.steps li { margin-bottom: 0.9rem; }

.notice {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer span { margin: 0 0.5rem; }
