/* Long-form legal pages (/privacy). The base `.page` is 480px — sized for the scan
   flow's single card on a phone — which is far too narrow for continuous prose, so
   this widens it the same way landing.css does for the marketing page. */
.legal-page {
  max-width: 760px;
  padding: 32px 24px 64px;
}

.legal-title {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 16px 0 4px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.legal-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--card-bg);
  border-radius: 0 12px 12px 0;
}

.legal-toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
}
.legal-toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}
.legal-toc a {
  color: var(--text);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section {
  margin: 0 0 36px;
  /* Anchor links land under the sticky-free header with a little breathing room
     rather than flush against the viewport top. */
  scroll-margin-top: 16px;
}
.legal-section h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}
.legal-section p {
  line-height: 1.65;
  margin: 0 0 12px;
}
.legal-section ul {
  line-height: 1.65;
  margin: 0 0 12px;
  padding-left: 22px;
}
.legal-section li {
  margin-bottom: 6px;
}
.legal-section a {
  color: var(--accent);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
  line-height: 1.5;
}
.legal-table th {
  background: var(--owner-bubble);
  font-weight: 600;
}

/* The "here's the short version" callouts — the promises a reader most wants to be
   able to find without reading the whole document. */
.legal-callout {
  margin: 0 0 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 24px 16px 48px;
  }
  .legal-title {
    font-size: 1.5rem;
  }
  /* A three-column table can't shrink below its content on a phone; let it scroll
     horizontally inside its own box instead of widening the whole page. */
  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}

/* The lede is a multi-paragraph block, so the accent rule brackets the whole thing
   rather than repeating per paragraph. */
.legal-lede p {
  margin: 0 0 12px;
}
.legal-lede p:last-child {
  margin-bottom: 0;
}
