/* The long-form text column shared by /terms and /privacy. Linked after
   site.css and sections.css. The type follows the blog's article column,
   on the site tokens so it follows the theme by itself. */

.legal {
  padding: 0 0 clamp(64px, 10vh, 120px);
}

.legal-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(var(--ink-rgb), 0.86);
}

/* Anchors (#section-15) must clear the fixed nav, not hide under it. */
.legal-body [id] {
  scroll-margin-top: calc(clamp(80px, 9vh, 96px) + var(--banner-h) + 16px);
}

.legal-updated {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(var(--ink-rgb), 0.62);
}

/* sections.css sizes every h2 as a display heading; these are body heads. */
.legal-body h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body strong {
  font-weight: 680;
  color: var(--ink);
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-body li {
  margin: 0 0 8px;
}

.legal-body li::marker {
  color: rgba(var(--ink-rgb), 0.45);
}

/* Ink text with a blue underline: the light-mode blue alone is under 4.5:1
   on white, too faint for running text. */
.legal-body a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-body a:hover {
  color: var(--blue);
}

.legal-body a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

/* ---------- Tables ---------- */

.legal-table {
  overflow-x: auto;
  margin: 20px 0 24px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.03);
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.62);
  border-bottom-color: var(--line);
  background: rgba(var(--paper-rgb), 0.6);
}

.legal-table tbody th {
  width: 30%;
  min-width: 9em;
  font-weight: 650;
  color: var(--ink);
}
