/* ── Long-form legal pages ────────────────────────────────────────────────
 *
 * Shared by privacy.html and terms.html. These are documents people actually
 * have to read, so the priorities are measure, contrast and scannability —
 * not the marketing site's density.
 */

:root {
  --bg-color: #0c0e02;
  --panel: #131410;
  --border: #28283a;
  --lime: #d2fd5f;
  --purple: #763ee6;
  --blue: #63cee9;
  --rose: #ff4d6d;
  --text-light: #e2e2ee;
  --text-muted: #a0a0c0;
  --text-dim: #5a5a78;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-color);
  color: var(--text-light);
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

header {
  border-bottom: 1px solid #763ee644;
  background: rgba(12, 14, 2, 0.95);
  padding: 20px 24px;
  text-align: center;
}
header .logo {
  color: var(--lime);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

/* ~68 characters at this size: long enough not to feel choppy, short enough
   that the eye finds the next line without effort. */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

h1 {
  color: var(--lime);
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.updated {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 36px;
}

h2 {
  color: var(--purple);
  font-size: 1.15rem;
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  color: var(--text-light);
  font-size: 0.98rem;
  margin: 26px 0 8px;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

strong {
  color: var(--text-light);
  font-weight: 600;
}

a {
  color: var(--blue);
}
a:hover {
  color: var(--lime);
}

ul,
ol {
  color: var(--text-muted);
  margin: 0 0 18px 22px;
}
li {
  margin-bottom: 9px;
}
li::marker {
  color: var(--text-dim);
}

/* The plain-language summary. Every one of these documents gets read by
   someone who will not read all of it — this is for them. */
.summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 40px;
}
.summary h2 {
  border: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.summary ul {
  margin-bottom: 0;
}
.summary p:last-child {
  margin-bottom: 0;
}

/* Rules people get removed for. Worth making impossible to skim past. */
.rules {
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.28);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 22px 0;
}
.rules h3 {
  color: var(--rose);
  margin-top: 0;
}
.rules ul:last-child,
.rules p:last-child {
  margin-bottom: 0;
}

.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 0.9rem;
}
.note p:last-child {
  margin-bottom: 0;
}

/* Wide on a phone: let it scroll rather than crush the columns. */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 520px;
}
th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 12px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid #1c1c26;
  color: var(--text-muted);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: none;
}
td strong {
  display: block;
  margin-bottom: 2px;
}

code {
  background: #1c1c26;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  color: var(--blue);
}

/* Anything the operator must replace before publishing. Loud on purpose. */
.fill {
  background: rgba(210, 253, 95, 0.14);
  border-bottom: 1px dashed var(--lime);
  color: var(--lime);
  padding: 0 4px;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
footer a {
  margin-right: 16px;
}

@media (max-width: 600px) {
  main {
    padding: 32px 18px 60px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
