/* ===== Legal pages ===== */
.legal-content {
  max-width: 70ch;
}
.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}
.legal-content li { margin-bottom: 0.5rem; }
.legal-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
/* ============================================================
   LEGAL REFINEMENT
   The measure was centred inside the container, so it never
   lined up with the hero heading above it. Left-align it and
   give the sections a clearer structure.
   ============================================================ */
.legal-content {
  max-width: 74ch;
  margin-left: 0;
  margin-right: auto;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.legal-updated::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-content h2 {
  position: relative;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
}
.legal-content h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.legal-content > h2:first-of-type { margin-top: 1.5rem; }

.legal-content h3 { color: var(--text-primary); }
.legal-content p { max-width: 70ch; }
.legal-content ul { list-style: disc; }
.legal-content ul li::marker { color: var(--accent); }
.legal-content strong { color: var(--heading); }

/* Left-aligning the measure pushed it flush against the viewport edge on a
   wide screen. Centre it in the container again, which is what a policy
   document should do. */
.legal-content { margin-inline: auto; }

/* A policy page reads as one centred document, so the hero has to agree with
   the body measure below it. Left hero + centred body looked misaligned. */
.page-hero:has(+ .section > .legal-content) > .container,
body:has(.legal-content) .page-hero > .container {
  max-width: 74ch;
}
body:has(.legal-content) .page-hero h1 { text-align: center; }
body:has(.legal-content) .page-hero h1::after { margin-inline: auto; }
body:has(.legal-content) .page-hero .lead { text-align: center; margin-inline: auto; }
body:has(.legal-content) .page-hero .breadcrumb { justify-content: center; }
body:has(.legal-content) .page-hero::before { display: none; }

/* Section headings stay left inside the reading column: centring them would
   break the scan pattern of a long document. */
.legal-content h2, .legal-content h3, .legal-content p, .legal-content ul { text-align: left; }

/* ============================================================
   LEGAL PHONE PASS
   A policy page is one long reading column, so the only thing
   it needs on a phone is a tighter section rhythm — 48px above
   each heading plus 32px of rule padding is a desktop measure —
   and an instruction that the contact addresses in the body may
   break, since they are the one string here with no space in it.
   ============================================================ */

@media (max-width: 600px) {
  .legal-content h2 { margin-top: 2rem; padding-top: 1.5rem; }
  .legal-content > h2:first-of-type { margin-top: 1rem; }
  .legal-content h3 { margin-top: 1.375rem; }
  .legal-content p { line-height: 1.75; }
  .legal-content ul { padding-left: 1.125rem; }
  .legal-content a { overflow-wrap: anywhere; }
  .legal-updated { margin-bottom: 1.75rem; }
}
