/* Shared stylesheet for the legal pages (terms, privacy, dmca).
 *
 * ONE stylesheet on purpose. These three pages restate each other in places
 * (the repeat-infringer policy lives in both Terms and DMCA), and the drift
 * that caused is exactly what centralising them here is meant to stop. Same
 * reason the pages themselves live in this repo and not in the app: the
 * version a claimant reads has to match the agent that is registered.
 *
 * Tokens are inherited from styles.css where it is loaded; the fallbacks below
 * let each legal page stand alone if styles.css is ever dropped.
 */

:root {
  --lg-bg: #070810;
  --lg-panel: #12151f;
  --lg-line: #222636;
  --lg-text: #f2f4fb;
  --lg-muted: #aab0c4;
  --lg-faint: #6b7088;
  --lg-accent: #8a6bff;
  --lg-accent-2: #19d3c5;
  color-scheme: dark;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--lg-bg);
  color: var(--lg-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 96px; }

/* header ------------------------------------------------------------- */

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--lg-line);
  padding-bottom: 16px;
  margin-bottom: 36px;
}

header.top .brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--lg-text);
}

header.top nav { display: flex; gap: 18px; }
header.top nav a { font-size: 0.9rem; color: var(--lg-muted); text-decoration: none; }
header.top nav a:hover { color: var(--lg-text); }
header.top nav a[aria-current="page"] { color: var(--lg-accent-2); }

/* type ---------------------------------------------------------------- */

h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-wrap: balance;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
  padding-top: 4px;
}

h3 { font-size: 1rem; margin: 24px 0 6px; color: var(--lg-text); }

p { margin-bottom: 14px; }
a { color: var(--lg-accent-2); }
strong { color: #fff; font-weight: 600; }

.meta { color: var(--lg-faint); font-size: 0.9rem; margin-bottom: 28px; }

ol, ul { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }
ol.alpha { list-style: lower-alpha; }

/* blocks -------------------------------------------------------------- */

.agent {
  background: var(--lg-panel);
  border: 1px solid var(--lg-line);
  border-left: 3px solid var(--lg-accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0 20px;
  line-height: 1.75;
}

.agent .role { font-weight: 600; color: #fff; }

.callout {
  background: var(--lg-panel);
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* tables (retention schedule) ----------------------------------------- */

.table-scroll { overflow-x: auto; margin: 16px 0 20px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lg-line);
  vertical-align: top;
}

thead th {
  color: var(--lg-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: var(--lg-line);
}

tbody tr:last-child td { border-bottom: none; }

/* footer -------------------------------------------------------------- */

.fine {
  color: var(--lg-faint);
  font-size: 0.86rem;
  margin-top: 48px;
  border-top: 1px solid var(--lg-line);
  padding-top: 18px;
}

.fine a { color: var(--lg-muted); }

@media (max-width: 520px) {
  .wrap { padding: 22px 16px 72px; }
  header.top { margin-bottom: 28px; }
}
