/* Shared styling for the legal pages (/privacy, /eula, /terms, /refund-policy).
   Separate from index.html's inline block on purpose: four documents carrying
   four copies of a stylesheet is four places to forget. The palette is the
   holding page's, so the pages read as the same site.

   These pages are long-form reading rather than a landing page, so they invert
   two of index.html's choices: text is left-aligned and the column is measured
   in characters rather than a fixed rem width. */

/* The palette is site.css's, kept literally in step: the legal pages must
   read as the same site in both themes. --accent stays the brand amber for
   borders and marks; --accent-text is the darkened variant that carries
   *text* on the light ground, where the raw amber fails body-text
   contrast (site.css explains the split). */
:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --panel: #ffffff;
  --ink: #232a38;
  --muted: #626c7d;
  --accent: #e8b86a;
  --accent-text: #8a6420;
  --line: #d4cdbd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a2233;
    --panel: #222c42;
    --ink: #e8ecf4;
    --muted: #9aa6bf;
    --accent: #e8b86a;
    --accent-text: #e8b86a;
    --line: #33456b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 3rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }

header.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
header.masthead img { width: 36px; height: 36px; }
header.masthead a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

h1 { margin: 2rem 0 0.25rem; font-size: 2rem; letter-spacing: -0.02em; }
h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
h3 { margin: 1.75rem 0 0.5rem; font-size: 1rem; }

p.updated { margin: 0 0 2rem; color: var(--muted); font-size: 0.9375rem; }

/* The one-sentence answer at the top of each document. Anyone who reads only
   this should not come away with a wrong impression of what the page says —
   if a summary and its clauses ever disagree, the summary is the bug. */
.summary {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
}
.summary p { margin: 0; }
.summary p + p { margin-top: 0.75rem; }

table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th, td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--panel); font-weight: 600; }

/* Long tables (the retention and sub-processor ones) must not force the page
   body to scroll sideways on a phone. */
.scroll { overflow-x: auto; }

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.9em;
}

ul, ol { padding-left: 1.5rem; }
li { margin: 0.35rem 0; }

dl.contact { margin: 1rem 0; }
dl.contact dt { color: var(--muted); font-size: 0.875rem; }
dl.contact dd { margin: 0 0 0.75rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
footer a { color: var(--muted); }
footer nav { margin-bottom: 0.75rem; }
footer nav a { margin-right: 1rem; }
