/*
 * Standalone styling for privacy.html and terms.html.
 *
 * Separate from styles.css on purpose: that file makes `main` a full-height grid
 * for the avatar stage, which is wrong for a page of prose. These pages only need
 * the palette, so the palette is duplicated here rather than importing the layout.
 */

:root {
  --bg: #f6f4ef;
  --page: radial-gradient(1200px 700px at 20% -10%, #fffdf8, #f6f4ef);
  --panel: #ffffff;
  --ink: #23201b;
  --ink-dim: #6b665c;
  --accent: #2f7d76;
  --line: #e7e2d8;
  /* Prose sits slightly softer than headings, but must not drift into the
     washed-out grey it became when this file was inverted from dark. */
  --prose: #3a352e;
}

:root[data-theme="dark"] {
  --bg: #12100f;
  --page: radial-gradient(1200px 700px at 20% -10%, #2a2320, #12100f);
  --panel: #1d1a18;
  --ink: #f5efe8;
  --ink-dim: #a89e95;
  --accent: #6ee7b7;
  --line: #332d29;
  --prose: #d8d0c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 48px 24px 96px;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

article {
  max-width: 680px;
  margin: 0 auto;
}

.brand {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.updated {
  color: var(--ink-dim);
  font-size: 13px;
  margin: 0 0 40px;
}

h2 {
  font-size: 19px;
  margin: 40px 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

p, li { color: var(--prose); }

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

ul { padding-left: 22px; }

li { margin-bottom: 8px; }

/* Used for the plain-language summary at the top of each page. */
.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 8px;
}

.summary p:first-child { margin-top: 0; }
.summary p:last-child { margin-bottom: 0; }

footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--ink-dim);
  font-size: 13px;
}

footer a { color: var(--ink-dim); }
