/* ==========================================================================
   BCMCC — legal pages (terms, privacy, refunds)
   Loaded on top of site.css. Prose-column layout; every value traces to the
   design-system tokens declared in site.css :root.
   ========================================================================== */

/* ── Slim nav ───────────────────────────────────────────────────────────── */
.legal-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.legal-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-nav__back {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}
.legal-nav__back:hover { color: var(--maple-deep); }

/* ── Page shell ─────────────────────────────────────────────────────────── */
.legal {
  background: var(--paper);
  padding: 68px 40px 96px;
}
.legal__inner { max-width: 760px; margin: 0 auto; }

.legal__head { padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.legal__head h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal__head h1 em { font-style: italic; font-weight: 400; color: var(--maple); }
.legal__meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--stone);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.legal__lede {
  margin-top: 22px;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ── Table of contents ──────────────────────────────────────────────────── */
.legal-toc {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 46px;
}
.legal-toc__h {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 34px; }
.legal-toc li { counter-increment: toc; margin-bottom: 8px; break-inside: avoid; }
.legal-toc a {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.legal-toc a::before {
  content: counter(toc) ".";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--maple);
  margin-right: 8px;
}
.legal-toc a:hover { color: var(--maple-deep); border-bottom-color: var(--maple-mid); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ── Body copy ──────────────────────────────────────────────────────────── */
.legal__body { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); }
.legal__body section { scroll-margin-top: 90px; margin-bottom: 46px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  padding-top: 6px;
}
.legal__body h2 .n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--maple);
  margin-right: 12px;
  vertical-align: 3px;
}
.legal__body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 26px 0 8px;
}
.legal__body p { margin-bottom: 15px; }
.legal__body ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.legal__body li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.legal__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.legal__body a { color: var(--maple-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--maple-dark); }
.legal__body strong { color: var(--ink); font-weight: 700; }

/* Callout — for the points people actually need to notice. */
.legal-note {
  background: var(--paper-warm);
  border-left: 3px solid var(--maple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 22px 0;
  font-size: 15.5px;
}
.legal-note strong { display: block; margin-bottom: 5px; }

/* Definition table — who sees what, retention windows. */
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom-color: var(--petal);
}
.legal-table td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
@media (max-width: 620px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .legal-table td { border: none; padding: 2px 0; }
  .legal-table td:first-child { width: auto; }
}

/* ── Unfilled placeholder ────────────────────────────────────────────────
   Anything the chamber still has to supply is wrapped in .fill so an
   unanswered question is impossible to miss on a rendered page. Remove the
   wrapper along with the value when filling it in.                        */
.fill {
  background: var(--gold-tint);
  border-bottom: 1.5px dotted var(--maple);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--maple-dark);
}

/* ── Foot ───────────────────────────────────────────────────────────────── */
.legal-foot {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  font-size: 14.5px;
}
.legal-foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--petal); }
.legal-foot a:hover { color: var(--maple-deep); border-bottom-color: var(--maple-mid); }
.legal-foot__copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
}
@media (max-width: 640px) {
  .legal { padding: 44px 22px 70px; }
  .legal-nav__inner { padding: 16px 22px; }
  .legal-foot__copy { margin-left: 0; width: 100%; }
}
