/* legal.css — shared chrome for the legal documents (#1101).
 *
 * Terms, Privacy and the sub-processor list are long-form reading, not
 * marketing surfaces. So: one column, generous measure, real hierarchy, and
 * nothing that competes with the text. Palette and type come from tokens.css so
 * these pages belong to the same house as everything else.
 */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 46rem; /* ~68 characters — long-form reading measure */
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
}

/* ---- masthead ---- */
.masthead {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding: 1.5rem 0 1.75rem;
}
.masthead a.home {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.masthead a.home:hover { color: var(--accent); }

h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 0.5rem;
  text-wrap: balance;
}
.dateline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}
h2 .n {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.6rem;
  vertical-align: 0.15em;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 1.75rem 0 0.4rem;
}

p, li { color: var(--ink-soft); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---- the draft banner. Deliberately loud: these are UNREVIEWED. ---- */
.draft {
  background: #FFF6EC;
  border: 1px solid var(--coral);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 0 0 2.5rem;
}
.draft p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.draft .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.35rem;
}

/* A blank that must be filled before this is binding. */
.tbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #FFF1E4;
  border-bottom: 1px dashed var(--coral);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  color: #8A4520;
}

/* ---- callout for the clauses that carry the most weight ---- */
.key {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.key p:last-child { margin-bottom: 0; }

/* ---- tables (sub-processors, data categories) ---- */
.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
td { color: var(--ink-soft); }

/* ---- table of contents ---- */
.toc {
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin: 0 0 2.5rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.92rem; }
@media (max-width: 34rem) { .toc ol { columns: 1; } }

footer.legal-foot {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
footer.legal-foot a { color: var(--muted); }

/* The documents are read on phones as often as anywhere else. */
@media (max-width: 30rem) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem 4rem; }
}
