/* Long-form legal prose — /privacy/, /terms/, /data-deletion-request/.
   No second design language: every colour, radius, font and type step below is a
   token already declared in site.css, which these pages load first.

   site.css zeroes the margins on p and h1-h3, because the landing page lays its
   sections out with grid and gap. Long-form prose has no grid to do that, so the
   vertical rhythm is re-established here instead of inherited. */

/* Title band. Dark, like the hero, so the light reading band that follows keeps
   the same dark/light rhythm the rest of the site uses. */
.legal-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.25rem, 5vw, 3.5rem); }
.legal-hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
  max-width: 22ch;
}
.legal-hero__lede {
  color: var(--ink-on-dark-mute);
  font-size: var(--t-lead);
  margin-top: 1.1rem;
  max-width: 60ch;
}
.legal-hero__meta {
  color: var(--ink-on-dark-mute);
  font-size: .88rem;
  margin-top: 1.6rem;
}

/* Reading column. 72ch keeps running text near the comfortable measure even
   though the shell around it is 1180px wide. */
.legal { max-width: 72ch; }

.legal h2 {
  font-size: clamp(1.3rem, 1.12rem + .7vw, 1.7rem);
  margin-top: clamp(2.5rem, 5vw, 3.4rem);
  scroll-margin-top: 90px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: var(--t-h3);
  margin-top: 1.9rem;
}
.legal p,
.legal ul,
.legal ol { margin-top: 1rem; }
.legal ul,
.legal ol { padding-left: 1.3rem; }
.legal li { margin-top: .5rem; }
.legal li > ul { margin-top: .5rem; }

.legal strong { font-weight: 700; }

.legal a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { text-decoration-thickness: 2px; }

/* Contents. A plain list of the page's own headings — these documents are long
   enough that landing on one without a map is unhelpful on a phone. */
.legal__toc {
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.legal__toc h2 {
  font-size: var(--t-eyebrow);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
}
.legal__toc ol {
  margin-top: .8rem;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 2rem;
}
.legal__toc li { margin-top: .35rem; break-inside: avoid; }
@media (max-width: 620px) { .legal__toc ol { columns: 1; } }

/* The identified legal entity. Repeated on all three pages, so it gets one
   treatment rather than three near-misses. */
.legal__entity {
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.4rem;
  margin-top: 1.25rem;
}
.legal__entity p { margin-top: .25rem; }
.legal__entity p:first-child { margin-top: 0; font-weight: 700; }

/* Callout, for the things a reader most needs to not miss — chiefly the parts of
   a deletion this product cannot carry out on someone else's system. */
.legal__note {
  background: var(--accent-soft);
  border: 1px solid rgba(15, 158, 140, .28);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin-top: 1.5rem;
}
.legal__note > :first-child { margin-top: 0; }

/* Definition-style pairs, used for "what we keep / for how long". */
.legal__pairs { margin-top: 1.2rem; }
.legal__pairs dt { font-weight: 700; margin-top: 1rem; }
.legal__pairs dd { margin: .3rem 0 0; color: var(--ink-mute); }

/* Steps for the deletion request. Numbered because the order is load-bearing:
   the request has to identify the account before anything can be actioned. */
.legal__steps { counter-reset: step; list-style: none; padding-left: 0; }
.legal__steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-top: 1.15rem;
}
.legal__steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .85rem;
}

/* Back to the site, at the foot of every legal page. */
.legal__back { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
