/* Legal documents — /terms and /privacy.
   Rendered from legal_content.py, the same source the app renders. Plain and
   readable on purpose: this is a document someone may need to quote back at
   us, not a page that has to sell anything. */

.legal { max-width: 68ch; }
.legal > * + * { margin-top: 1.25rem; }

/* styles.css scopes the section-title rule to h2, so an h1 carrying the same
   class falls back to bold sans. Give the document heading its own rule. */
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-section);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-sub);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-top: 2.75rem;
}

.legal p {
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--ink-2);
}

.legal p.note { color: var(--ink-3); margin-top: 0.25rem; }

.legal-table-wrap { overflow-x: auto; margin-top: 1.5rem; }

.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: var(--t-sm);
}
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
.legal-table tr:first-child th, .legal-table tr:first-child td { border-top: none; }
.legal-table th { font-weight: 600; color: var(--navy); width: 22%; white-space: nowrap; }
.legal-table td { color: var(--ink-2); }
.legal-table td:first-of-type { width: 26%; }

.legal-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--t-caption);
  color: var(--ink-3);
}
