/* ================= Legal pages (/privacy, /terms) =================
   Long-form document typography. Loaded after /styles.css by the two page
   wrappers. Everything reads from the shared palette + section-alternation
   tokens, so these pages move with the rest of the site.

   The measure is deliberately narrower than a marketing section (72ch, not the
   1600px band): these are read top-to-bottom, not scanned. */

.legal-wrap { max-width: 900px; margin: 0 auto; padding-left: clamp(16px, 5vw, 40px); padding-right: clamp(16px, 5vw, 40px); }

/* ---- hero ---- */
.legal-hero { position: relative; padding: 148px 0 clamp(48px, 7vw, 80px); }
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 20px;
}
.legal-eyebrow span { width: 26px; height: 1px; background: var(--accent-deep); opacity: .6; }
.legal-h1 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800;
  font-size: clamp(38px, 6vw, 76px); line-height: 0.92; letter-spacing: -0.012em;
  text-transform: uppercase; margin: 0; padding-top: 0.1em;
  background: var(--hero-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- body ---- */
.legal-sec { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(64px, 8vw, 110px); }
.legal-body { color: var(--on-dim); }
.legal-h2 {
  font-family: 'Big Shoulders Display', sans-serif; font-weight: 800;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase; color: var(--on);
  margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--hair-2);
}
.legal-body > .legal-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-h3 {
  font-family: 'Inter Tight', system-ui, sans-serif; font-weight: 700;
  font-size: 18px; line-height: 1.3; color: var(--on); margin: 34px 0 10px;
}
.legal-p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.legal-p strong { color: var(--on); font-weight: 600; }
.legal-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body a:hover { color: var(--on); }

.legal-list { margin: 0 0 18px; padding-left: 22px; }
.legal-list li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.legal-list li::marker { color: var(--accent-deep); }

/* ---- the "purposes" table ---- */
.legal-table-wrap {
  margin: 22px 0 26px; border-radius: 18px; overflow-x: auto;
  background: rgba(255,255,255,0.6); border: 1px solid var(--hair-2);
}
table.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.legal-table th {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dim-2);
  text-align: left; padding: 14px 18px; vertical-align: top;
}
.legal-table td {
  font-size: 14.5px; line-height: 1.6; color: var(--on-dim);
  padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--hair-2);
}
.legal-table td:first-child { color: var(--on); font-weight: 500; }

@media (max-width: 720px) {
  .legal-hero { padding-top: 120px; }
  .legal-p, .legal-list li { font-size: 15.5px; }
  /* 3 columns of prose cannot fit a phone: one stacked card per row, each cell
     labelled from the header it belongs to (same pattern as .mob-table). */
  .legal-table-wrap { overflow-x: visible; }
  table.legal-table { min-width: 0; }
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { padding: 16px 18px; border-top: 1px solid var(--hair-2); }
  .legal-table tr:first-child { border-top: 0; }
  .legal-table td { padding: 0 0 10px !important; border: 0; }
  .legal-table td:last-child { padding-bottom: 0 !important; }
  .legal-table td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dim-2);
  }
}
