/* ============================================================
   The markdown pages (privacy, terms, contact, guidelines) —
   plain, readable prose. Styles the HTML that landing/content/*.md
   renders to, so it targets bare elements under .legal rather
   than classes. Reuses tokens.css for color/type.
   ============================================================ */

.legal-header {
  padding-block: 2rem;
}
.legal-header a {
  font-weight: 700;
  font-size: 1.0625rem;
}

.legal {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
}
.legal .updated {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}
.legal h2 {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}
.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.legal h4 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}
.legal p, .legal ul {
  margin-top: 0.85rem;
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal ul ul { margin-top: 0.4rem; }
.legal li { margin-top: 0.4rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.legal th, .legal td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.legal th { color: var(--color-text-muted); font-weight: 600; }

.legal-back {
  display: inline-block;
  margin-top: 3rem;
}

/* Contact page — the one address, set apart from the prose around it. */
.contact-card {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
}
.legal .contact-card__label {
  margin-top: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}
.legal .contact-card__email {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
