/* Typography for the static legal pages (landing/legal/*.html).
   New, self-contained — never loaded by index.html, so it can't affect
   the landing itself. Uses the landing's own tokens from styles.css
   (--forest / --ink / --ivory / --line / --muted / --gold). */

.legal-doc {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px 0 72px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.legal-doc > * + * {
  margin-top: 1.05em;
}

.legal-doc h1 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--forest);
}

.legal-doc h2 {
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.35;
  font-weight: 700;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  color: var(--forest);
}

.legal-doc h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 1.6em;
}

.legal-doc h1 + p,
.legal-doc h2 + p,
.legal-doc h3 + p {
  margin-top: 0.6em;
}

.legal-doc p,
.legal-doc li {
  overflow-wrap: anywhere;
}

.legal-doc strong {
  font-weight: 700;
  color: #12211a;
}

.legal-doc ul,
.legal-doc ol {
  margin-left: 1.25em;
  padding-left: 0.5em;
}

.legal-doc li + li {
  margin-top: 0.4em;
}

.legal-doc a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: #b6beb0;
  text-underline-offset: 3px;
}

.legal-doc a:hover {
  text-decoration-color: currentColor;
}

.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.legal-doc blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(213, 171, 76, 0.08);
  border-radius: 0 10px 10px 0;
}

.legal-doc blockquote p {
  margin: 0;
  font-size: 14px;
}

.legal-table-scroll {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
  /* Wider than the 760px prose column on purpose — the four columns
     stay readable and `.legal-table-scroll` scrolls horizontally. */
  min-width: 860px;
}

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

.legal-table th:first-child { width: 24%; }
.legal-table th:nth-child(2),
.legal-table th:nth-child(3) { width: 27%; }
.legal-table th:last-child { width: 22%; }

.legal-table thead th {
  background: var(--ivory);
  font-weight: 700;
  color: var(--forest);
  position: sticky;
  top: 0;
}

.legal-table tbody th {
  font-weight: 700;
  color: #12211a;
}

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

.legal-back {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-doc {
    font-size: 14px;
    padding: 28px 0 56px;
  }
}
