/* =========================================================================
   Legal pages. Loaded after styles.css, so tokens, nav, buttons and footer
   are inherited. Deliberately plain: legal copy earns trust by being easy to
   read, not by being designed at.
   ========================================================================= */

.legal__head { padding-block: clamp(44px, 7vh, 84px) clamp(24px, 3.5vw, 38px); }

.legal__title {
  margin-top: clamp(20px, 3vw, 30px);
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.legal__meta {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.legal__standfirst {
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 62ch;
}

.legal__body {
  padding-block: clamp(30px, 4vw, 48px) clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
}
/* One column, held to a comfortable measure. Legal text is read, not scanned,
   so it gets the narrow column rather than the full container width. */
.legal__body > section { max-width: 72ch; }
.legal__body > section + section { margin-top: clamp(30px, 4vw, 44px); }

.legal__body h2 {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.legal__body p {
  color: var(--text-dim);
  font-size: clamp(15.5px, 1.6vw, 17px);
  line-height: 1.7;
}
.legal__body p + p { margin-top: 14px; }
.legal__body strong { color: var(--text); font-weight: 700; }
.legal__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
}

.legal__list { margin-top: 16px; display: grid; gap: 10px; }
.legal__list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.55vw, 16.5px);
  line-height: 1.62;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal__list strong { color: var(--text); }

/* The "what we collect" table. Scrolls inside itself on narrow screens so the
   page body never scrolls sideways. */
.legal__table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  font-size: 15px;
}
.legal__table th,
.legal__table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}
.legal__table thead th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(255,255,255,0.03);
}
.legal__table tbody td { color: var(--text-dim); }
.legal__table tbody td:first-child { color: var(--text); font-weight: 600; }
.legal__table tbody tr:last-child td { border-bottom: 0; }

.legal__cta {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--r-block);
  background: var(--sheen), rgba(255,255,255,0.02);
  box-shadow: var(--edge-light);
}
.legal__cta h2 { margin-bottom: 8px; }
.legal__cta p { margin-bottom: 22px; }

@media (max-width: 620px) {
  /* Stack the table into labelled rows rather than squeezing three columns. */
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table thead { display: none; }
  .legal__table tr { border-bottom: 1px solid var(--border); padding: 12px 4px; }
  .legal__table tr:last-child { border-bottom: 0; }
  .legal__table td { border: 0; padding: 3px 12px; }
  .legal__table td:nth-child(2)::before { content: "Why: "; color: var(--text-soft); }
  .legal__table td:nth-child(3)::before { content: "Kept: "; color: var(--text-soft); }
}
