/* /legal — a document surface, not a marketing page. Same tokens as the rest of
   the site: white, navy headings, muted body, one blue accent. No new colours. */

.lg {
  background: var(--card);
  padding-block: clamp(44px, 6vw, 84px);
  padding-inline: max(var(--pad), calc((100% - var(--content)) / 2));
}
.lg__doc { max-width: 76ch; }        /* outer bound; wide enough for the schedules */

/* Document pages carry the outline rail in the right-hand column. Visuals for
   the rail itself live in toc.css, shared with /about. */
@media (min-width: 1120px) {
  .lg__grid {
    display: grid;
    grid-template-columns: minmax(0, 68ch) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
  .lg__grid > .lg__doc { max-width: none; }   /* the column constrains it */
}

/* Text runs narrower than the container so a line lands in the 65-75 character
   band. `ch` measures the "0" glyph, which is narrower than Geist's average
   character, so this value is set from a measured line rather than assumed. */
.lg__body p,
.lg__body ul,
.lg__body h2,
.lg__body h3,
.lg__body h4,
.lg__dates { max-width: 58ch; }

.lg__back {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
}
.lg__back a { color: var(--muted-2); }
.lg__back a:hover { color: var(--ink); }

.lg__head h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600; line-height: 1.06; letter-spacing: -.032em;
  color: var(--ink-deep);
}
.lg__dates {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  margin: 16px 0 0; padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.lg__dates strong {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2);
  margin-right: 7px;
}

/* ---------- body ---------- */
.lg__body { padding-top: 8px; }
.lg__body h2 {
  margin: 42px 0 14px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600; line-height: 1.2; letter-spacing: -.026em;
  color: var(--ink-deep);
  scroll-margin-top: 96px;
}
.lg__body h3 {
  margin: 30px 0 10px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.018em;
  color: var(--ink-deep);
  scroll-margin-top: 96px;
}
.lg__body h4 {
  margin: 24px 0 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  scroll-margin-top: 96px;
}
.lg__body p {
  margin: 0 0 15px;
  font-size: 15.5px; line-height: 1.7; letter-spacing: -.006em;
  color: var(--ink);
}
.lg__body p strong { color: var(--ink-deep); font-weight: 600; }
.lg__body em { font-style: italic; color: var(--muted); }

.lg__list { margin: 0 0 18px; padding-left: 20px; }
.lg__list li {
  margin-bottom: 8px;
  font-size: 15.5px; line-height: 1.66; color: var(--ink);
}
.lg__list li::marker { color: var(--muted-2); }

.lg__link { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.lg__link:hover { color: var(--ink-deep); }

/* Tables carry Schedule A/B and the DPA annexes; they must never widen the page. */
.lg__tablewrap {
  margin: 0 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-inset);
}
.lg__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg__table th, .lg__table td {
  padding: 11px 14px;
  text-align: left; vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.lg__table th {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted-2);
  background: var(--tint-2);
  white-space: nowrap;
}
.lg__table td { color: var(--ink); }
.lg__table tbody tr:last-child td { border-bottom: 0; }
.lg__table td:first-child { color: var(--ink-deep); font-weight: 500; }

/* ---------- index ---------- */
.lg__index { margin: 30px 0 0; padding: 0; list-style: none; }
.lg__index li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.lg__index li:first-child { border-top: 1px solid var(--line); }
.lg__index a {
  display: block;
  font-size: 18px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink-deep);
}
.lg__index a:hover { color: var(--accent-700); }
.lg__index span {
  display: block; margin-top: 4px;
  font-size: 14.5px; line-height: 1.55; color: var(--muted);
}

@media (max-width: 640px) {
  .lg__table th, .lg__table td { padding: 10px 12px; }
}
