/* ==========================================================================
   Legal documents — privacy, terms, cookies.
   Optimised for actually being read: a single measure column, generous line
   height, and headings a person can scan. A privacy notice nobody can read is
   not transparency, whatever the regulation says.
   ========================================================================== */

.legal-header {
  padding: 11rem 0 3rem;
  background: var(--bone);
  border-bottom: 1px solid var(--grey-line);
}
.legal-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.legal-header .lede { max-width: 62ch; color: var(--slate); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--grey);
}
.legal-meta div span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.legal-meta div strong { color: var(--ink); font-weight: 500; }

.legal-body { padding: 4rem 0 6rem; }
.legal-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; }
}

/* Contents list — sticky on desktop so the reader keeps their place in a long
   document. */
.legal-toc { position: sticky; top: 6rem; }
@media (max-width: 900px) {
  .legal-toc {
    position: static;
    padding: 1.2rem 1.4rem;
    background: var(--bone);
    border-radius: var(--radius);
  }
}
.legal-toc h4 {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: 0.5rem; }
.legal-toc a {
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.4;
  display: block;
}
.legal-toc a::before {
  content: counter(toc) ". ";
  color: var(--grey-soft);
}
.legal-toc a:hover { color: var(--gold-deep); }

.legal-content { max-width: 68ch; }
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--grey-line);
  scroll-margin-top: 6rem;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
  color: var(--ink);
}
.legal-content p { margin-bottom: 1.1rem; line-height: 1.75; }
.legal-content ul, .legal-content ol { margin: 0 0 1.2rem 1.2rem; }
.legal-content li { margin-bottom: 0.55rem; line-height: 1.7; }
.legal-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { font-weight: 600; }

/* A table is the honest way to present processors and retention periods —
   prose hides the detail people actually need. */
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1.4rem 0 2rem; }
.legal-table th {
  text-align: left;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--ink);
}
.legal-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--grey-line);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table tr:last-child td { border-bottom: none; }

.legal-callout {
  border-left: 3px solid var(--gold);
  background: var(--bone);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
}
.legal-callout strong { display: block; margin-bottom: 0.3rem; }

/* Draft banner. Deliberately loud: this text has not been through a solicitor,
   and publishing it as though it had would be worse than having no notice. */
.legal-draft {
  background: #FDF6EF;
  border: 1px solid #E8C9AC;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #8A5A2B;
}
.legal-draft strong { display: block; margin-bottom: 0.3rem; color: #7A4A1B; }

@media print {
  .nav, .footer, .legal-toc, .legal-draft { display: none !important; }
  .legal-wrap { grid-template-columns: 1fr; max-width: none; padding: 0; }
  .legal-header { padding: 0 0 1.5rem; background: none; }
}
