/* ============================================================
   MARK KRAMER LAW — assets/legal.css
   DESIGN SPEC mkl-2026-09-25.1 (locked)

   Long-form reading layer. Linked AFTER assets/styles.css on
   privacy-policy.html, terms-of-use.html, disclaimer.html and
   accessibility.html ONLY. It adds three things styles.css does not
   have: a narrower prose measure with 1.75 leading, an in-page table
   of contents, and a definition list.

   It declares no colour, no font family and no duration of its own:
   every such value is an existing --mkl-* token. No gradient, no
   shadow, no radius beyond --mkl-radius-control, no !important.
   Callouts are a hairline plus a Syne eyebrow — never a rounded card
   with a coloured left border.
   ============================================================ */

/* ---------- page shell ---------- */
.legal { max-width: var(--mkl-content-max); }

.legal__head {
  --od-gap: var(--mkl-space-2);
  max-width: 66ch;
}
.legal__lede {
  max-width: 66ch;
  line-height: 1.75;
}
.legal__updated {
  max-width: 66ch;
  margin-top: var(--mkl-space-2);
  padding-top: var(--mkl-space-2);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
  font-family: var(--mkl-font-body);
  font-weight: 500;
  font-size: var(--mkl-label-size);
  line-height: 1.5;
  color: var(--mkl-ink);
}

/* ---------- in-page table of contents (never sticky) ----------
   A real <nav> with an accessible name. One column at 375px, two from
   768px up: the list reorganises rather than shrinking its type. */
.legal-toc {
  max-width: 68ch;
  margin-top: var(--mkl-space-6);
  padding-top: var(--mkl-space-3);
  padding-bottom: var(--mkl-space-3);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
  border-bottom: var(--mkl-hairline-width) solid var(--mkl-hairline);
}
.legal-toc__title {
  display: block;
  margin-bottom: var(--mkl-space-1);
}
.legal-toc__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--mkl-space-5);
}
.legal-toc__link {
  display: flex;
  align-items: center;
  gap: var(--mkl-space-2);
  min-height: 44px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-family: var(--mkl-font-body);
  font-weight: 400;
  font-size: var(--mkl-label-size);
  line-height: 1.5;
  color: var(--mkl-teal);
  text-decoration: underline;
  text-decoration-thickness: var(--mkl-hairline-width);
  text-underline-offset: 4px;
  transition: text-underline-offset var(--mkl-dur) ease-out;
}
.legal-toc__link:hover { text-underline-offset: 6px; }
.legal-toc__num {
  flex: none;
  font-family: var(--mkl-font-display);
  font-weight: 700;
  font-size: var(--mkl-eyebrow-size);
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .legal-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- numbered sections ---------- */
.legal__body { margin-top: var(--mkl-space-8); }
.legal-section { max-width: 66ch; }
/* headings get real space above them */
.legal-section + .legal-section { margin-top: var(--mkl-space-10); }
.legal-section__title { margin-bottom: var(--mkl-space-3); }
.legal-section__num {
  display: block;
  margin-bottom: var(--mkl-space-1);
  font-family: var(--mkl-font-display);
  font-weight: 700;
  font-size: var(--mkl-eyebrow-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkl-muted);
}

/* ---------- long-form prose: 66ch, 1.75 leading ---------- */
.legal-prose {
  max-width: 66ch;
  font-family: var(--mkl-font-body);
  font-weight: 400;
  font-size: var(--mkl-body-size);
  line-height: 1.75;
  color: var(--mkl-ink);
}
.legal-prose > * + * { margin-top: var(--mkl-space-2); }
.legal-prose a {
  color: var(--mkl-teal);
  text-decoration: underline;
  text-decoration-thickness: var(--mkl-hairline-width);
  text-underline-offset: 3px;
}
.legal-prose strong {
  font-weight: 500;
}

/* ---------- hairline-marked list ---------- */
.legal-list {
  display: grid;
  gap: var(--mkl-space-2);
  max-width: 66ch;
}
.legal-list > li {
  position: relative;
  padding-left: var(--mkl-space-3);
  font-size: var(--mkl-body-size);
  line-height: 1.75;
  color: var(--mkl-ink);
}
.legal-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 10px;
  height: var(--mkl-hairline-width);
  background: var(--mkl-teal);
}

/* ---------- definition list (label above value, normal flow) ---------- */
.legal-dl {
  display: grid;
  gap: var(--mkl-space-3);
  max-width: 66ch;
}
.legal-dl > div {
  display: grid;
  gap: 4px;
  padding-top: var(--mkl-space-2);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
}
.legal-dl dt {
  font-family: var(--mkl-font-body);
  font-weight: 500;
  font-size: var(--mkl-label-size);
  line-height: 1.5;
  color: var(--mkl-ink);
}
.legal-dl dd {
  font-family: var(--mkl-font-body);
  font-weight: 400;
  font-size: var(--mkl-body-size);
  line-height: 1.75;
  color: var(--mkl-ink);
}

@media (min-width: 1024px) {
  .legal-dl > div {
    grid-template-columns: 22ch minmax(0, 1fr);
    gap: var(--mkl-space-3);
    align-items: start;
  }
}

/* ---------- contact block at the end of a section ---------- */
.legal-contact {
  --od-gap: var(--mkl-space-2);
  max-width: 66ch;
  margin-top: var(--mkl-space-3);
  padding-top: var(--mkl-space-3);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
}
.legal-contact .od-field { --od-gap: 4px; }
.legal-contact__label {
  font-family: var(--mkl-font-body);
  font-weight: 500;
  font-size: var(--mkl-eyebrow-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkl-muted);
}
.legal-contact__value {
  font-family: var(--mkl-font-body);
  font-weight: 400;
  font-size: var(--mkl-body-size);
  line-height: 1.6;
  color: var(--mkl-ink);
}

@media (min-width: 768px) {
  .legal-contact { --od-cols: 2; }
}

/* ---------- back to top of the page ---------- */
.legal__foot {
  max-width: 66ch;
  margin-top: var(--mkl-space-10);
  padding-top: var(--mkl-space-3);
  border-top: var(--mkl-hairline-width) solid var(--mkl-hairline);
}

/* ---------- motion neutralised ---------- */
@media (prefers-reduced-motion: reduce) {
  .legal-toc__link { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- inline literal (a stored key, a file name) ----------
   Stays on the locked body face — Inter is never used as a display
   face here, only marked with weight and the teal token. */
.legal-prose code,
.legal-dl code {
  font-family: var(--mkl-font-body);
  font-weight: 500;
  font-size: 0.95em;
  letter-spacing: 0.01em;
  color: var(--mkl-teal);
}
