/*
 * Shared styling for the three legal pages.
 *
 * They are static HTML rather than routes in the app, for one reason that matters: they must be
 * readable by someone who is not signed in, has not paid, and — if something has gone wrong — cannot
 * load the editor at all. A refund policy reachable only from inside the product you are trying to
 * get a refund for is not a refund policy. No JavaScript, no fonts to fetch, no auth.
 *
 * A separate file rather than three inline blocks so a wording or spacing fix does not have to be
 * made three times. `style-src 'self'` in the CSP permits it.
 */
:root {
  color-scheme: dark;
  --bg: #0f0f11;
  --panel: #131315;
  --border: #222224;
  --text: #d4d4d8;
  --dim: #8b8b94;
  --faint: #5f5f68;
  --accent: #00ff66;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 3rem 1.5rem 5rem;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 44rem; margin: 0 auto; }

header { margin-bottom: 2.5rem; }

.wordmark {
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

h1 { font-size: 1.6rem; font-weight: 600; margin: 0.9rem 0 0.35rem; color: #f4f4f5; }

.updated { font-size: 12px; color: var(--faint); margin: 0; }

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #f4f4f5;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 { font-size: 0.9rem; font-weight: 600; color: #e4e4e7; margin: 1.5rem 0 0.4rem; }

p, li { color: var(--text); }
ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

a { color: var(--accent); text-underline-offset: 2px; }

strong { color: #f4f4f5; font-weight: 600; }

/* The one-sentence summary each page opens with. Someone who reads only this should still come away
   with the right idea, because most people will read only this. */
.summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0 2rem;
}
.summary p { margin: 0; color: #e4e4e7; }
.summary p + p { margin-top: 0.6rem; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 14px; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Wide content must scroll inside itself rather than pushing the page sideways on a phone. */
.scroll-x { overflow-x: auto; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--faint);
}
footer a { color: var(--dim); }
footer nav { margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

@media (max-width: 640px) {
  body { padding: 2rem 1.15rem 4rem; font-size: 14.5px; }
  h1 { font-size: 1.35rem; }
}

@media print {
  body { background: #fff; color: #000; padding: 0; }
  h1, h2, h3, strong, .summary p { color: #000; }
  .summary { border: 1px solid #999; background: none; }
  a { color: #000; }
}
