/* Long-form legal documents on the marketing site read as documents, not as
   marketing sections — the same treatment the app uses in LegalPalette and the
   document typography of legal_reference_reader.dart: one flat ground,
   hairlines instead of panels, a real reading measure, and green kept for
   links rather than used as decoration.

   Loaded AFTER each page's inline <style> block so it wins on order. Only
   .legal-* rules live here, so pages that merely borrow the legal shell keep
   the rest of their own styling. */

:root {
  --legal-ink: #f6f8fa;
  --legal-body: #b6c0cb;
  --legal-faint: #868f9b;
  --legal-hairline: rgba(255, 255, 255, 0.12);
  --legal-accent: #34d399;
  --legal-gutter: 34px;
  --legal-measure: 680px;
}

/* No radial washes behind the title — a legal document opens with its name. */
.legal-hero {
  background: none;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--legal-hairline);
}

.legal-title {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--legal-ink);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12;
}

/* The date is the document's masthead line, not body copy. */
.legal-meta {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--legal-faint);
}

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

.legal-content {
  padding-top: 8px;
}

.legal-prose {
  max-width: var(--legal-measure);
}

/* A rule between sections instead of a card around each one. */
.legal-prose h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--legal-ink);
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--legal-hairline);
}

.legal-prose > h2:first-child {
  padding-top: 22px;
  border-top: none;
}

/* Abuse Prevention opens on a standfirst rather than a heading. */
.legal-prose > p:first-child {
  margin-top: 22px;
}

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

.legal-prose p {
  margin: 14px 0 30px;
}

/* Clauses hang off a gutter mark, the way the app sets them. The mark stays
   neutral rather than numbered: several headings already carry their own
   clause number ("12. Advertising") while the preamble carries none, so a CSS
   counter would print a second, disagreeing number beside the real one. */
.legal-prose ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 30px;
}

.legal-prose ul li {
  position: relative;
  padding-left: var(--legal-gutter);
  margin-bottom: 14px;
}

.legal-prose ul li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--legal-faint);
}

.legal-prose ul li::marker {
  content: none;
}

.legal-prose ul ul {
  margin: 12px 0 0;
}

.legal-prose a {
  color: var(--legal-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(52, 211, 153, 0.45);
}

.legal-prose a:hover {
  text-decoration-color: var(--legal-accent);
}

.legal-prose code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--legal-hairline);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--legal-ink);
}

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

@media (max-width: 600px) {
  :root {
    --legal-gutter: 26px;
  }

  .legal-prose h2 {
    font-size: 18px;
    padding-top: 26px;
  }
}
