/* ============================================================
   Oxford Social — legal pages (Terms, Privacy, Refunds)
   Long-form prose in the v4 monochrome system. Consumes only
   the contextual -c tokens so it reads correctly in either
   theme. No new colours are introduced here.
   ============================================================ */

.legal {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.2rem, 5vw, 3rem);
}

.legal__inner {
  max-width: 72ch;
  margin: 0 auto;
}

/* Last-reviewed stamp sitting above the first section. */
.legal__stamp {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-c);
  padding-bottom: 1.6rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-c);
}

/* On-page contents — plain list, no bullets, generous hit areas. */
.legal__toc {
  margin-bottom: 3rem;
}
.legal__toc h2 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-c);
  margin-bottom: 0.9rem;
}
.legal__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  columns: 2;
  column-gap: 2.4rem;
}
.legal__toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
  break-inside: avoid;
}
.legal__toc a {
  color: var(--muted-c);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal__toc a::before {
  content: counter(toc) ". ";
  color: var(--muted-c);
  opacity: 0.6;
}
.legal__toc a:hover {
  color: var(--ink-c);
  border-bottom-color: var(--line-c);
}

@media (max-width: 640px) {
  .legal__toc ol { columns: 1; }
}

/* --- prose ------------------------------------------------ */

.legal__section {
  margin-bottom: 3.2rem;
  /* offset for the sticky nav when jumping via the contents links */
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.legal__section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.legal__section h3 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 1.8rem 0 0.6rem;
}

.legal__section p,
.legal__section li {
  color: var(--muted-c);
  line-height: 1.75;
}

.legal__section p { margin-bottom: 1rem; }

.legal__section ul,
.legal__section ol {
  margin: 0 0 1.2rem 1.1rem;
  padding: 0;
}

.legal__section li { margin-bottom: 0.55rem; }

.legal__section a {
  color: var(--ink-c);
  text-decoration: none;
  border-bottom: 1px solid var(--line-c);
  transition: border-color 0.2s ease;
}
.legal__section a:hover { border-bottom-color: var(--ink-c); }

.legal__section strong { color: var(--ink-c); font-weight: 500; }

/* Definition-style rows for the "what we collect / why" table. */
.legal__data {
  border-top: 1px solid var(--line-c);
  margin-bottom: 1.4rem;
}
.legal__data > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0 1.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-c);
}
.legal__data dt {
  color: var(--ink-c);
  font-size: 0.94rem;
  font-weight: 500;
}
.legal__data dd {
  margin: 0;
  color: var(--muted-c);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .legal__data > div { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Callout for the things we most want read (allergens, age, refunds). */
.legal__callout {
  border: 1px solid var(--line-c);
  border-left-width: 2px;
  border-left-color: var(--ink-c);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.4rem;
}
.legal__callout p:last-child { margin-bottom: 0; }

/* Contact block that closes every legal page. */
.legal__contact {
  border-top: 1px solid var(--line-c);
  padding-top: 2rem;
  margin-top: 3.4rem;
}
.legal__contact h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 500;
  margin-bottom: 1rem;
}
.legal__contact address {
  font-style: normal;
  color: var(--muted-c);
  line-height: 1.8;
}
.legal__contact address a { color: var(--ink-c); }
