/* ============================================================
   Tab — the prose pages: privacy.html and terms.html, drawn in
   design/website/Privacy.dc.html, and the guides (fe/CLAUDE.md §7c),
   drawn in design/website/Article.dc.html.

   They load site.css FIRST and this file second: site.css holds the
   colours, the scrolling page, the top bar and the Privacy · Terms
   line, so all that is left here is a readable column of prose.
   A third copy of the colours is how the two schemes drift apart.
   ============================================================ */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px calc(env(safe-area-inset-bottom) + 72px);
}

.legal-header {
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}

.legal-header h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.legal-updated {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

/* The opening paragraph is the summary, so it reads a size up and in the text
   colour. Qualified with the element to outweigh `.legal p` below. */
.legal p.legal-lede {
  font-size: 16.5px;
  color: var(--text);
}

.legal h2 {
  margin: 38px 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-2);
}

.legal p { margin-bottom: 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li { margin-bottom: 9px; }

.legal li::marker { color: var(--text-3); }

.legal strong {
  color: var(--text);
  font-weight: 600;
}

/* A link inside the prose is underlined, in Tab's gold. */
.legal-body a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The one thing on the page people most need to notice, on a card. */
.legal-callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.legal-callout p:last-child { margin-bottom: 0; }

/* The page closes with the guides, two a row, then Home · Privacy · Terms, with a
   rule above them like the one under the title. Each row is site.css's
   .footer-legal, closer together here. They sit inside `.legal-body`, whose link
   rule above would paint them gold and underline them: put them back to the quiet
   footer links. */
.legal-foot {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.legal-foot .footer-legal { margin-top: 10px; }
.legal-foot .footer-legal:first-child { margin-top: 0; }

.legal-body .footer-legal a {
  color: var(--text-2);
  font-weight: 400;
  text-decoration: none;
}

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

@media (min-width: 880px) {
  .legal { padding-top: 40px; }
  .legal-header h1 { font-size: 46px; }
}
