/* Shared styling for the standalone privacy / terms pages.
   These live in public/ rather than in the app bundle: Google requires a
   privacy policy and home page URL before an OAuth app can be published, and a
   link that only works once a JavaScript map has booted is a poor thing to hand
   a reviewer — or a reader. Plain HTML, no build step, no JavaScript.
   The palette is copied from src/style.css rather than imported, so these pages
   keep working even if the app's stylesheet is renamed or hashed. */

:root {
  --cream: #fbf6ee;
  --sand: #efe4d3;
  --ink: #3b332b;
  --ink-soft: #5c5046;
  --line: #e7dccb;
  --accent: #e07a5f;
  --accent-deep: #cf6b50;
  --white: #fffaf2;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 20px 96px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

.wrap { max-width: 40rem; margin: 0 auto; }

.back {
  display: inline-block;
  margin: 28px 0 0;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 500;
}
.back:hover, .back:focus-visible { text-decoration: underline; }

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 20px 0 6px;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2.4em 0 0.4em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}

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

.updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

p, li { margin: 0.7em 0; }

ul { padding-left: 1.25em; }

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

strong { font-weight: 600; }

/* A quiet callout for the things a reader most needs to notice — the public
   coordinate, and the fact that a deletion takes a shared timeline with it. */
.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 11px;
  padding: 2px 16px;
  margin: 1.2em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1em 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
}
th { font-weight: 600; white-space: nowrap; }

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

/* Dark, matching src/style.css token for token. theme-boot.js runs on these
   pages too, so a choice made in the app is honoured here; without it (or with
   storage blocked) they follow the device. The :not() guard is what lets an
   explicit "light" win over a dark device. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #17140f;
    --sand: #2b241b;
    --ink: #f0e7d9;
    --ink-soft: #b7a894;
    --line: #332c22;
    --accent: #ef9075;
    --accent-deep: #f5a68e;
    --white: #201a14;
  }
}
:root[data-theme="dark"] {
  --cream: #17140f;
  --sand: #2b241b;
  --ink: #f0e7d9;
  --ink-soft: #b7a894;
  --line: #332c22;
  --accent: #ef9075;
  --accent-deep: #f5a68e;
  --white: #201a14;
}
