:root {
  color-scheme: dark;
  --bg: #060608;
  --surface: #0d0c10;
  --text: #eeeae1;
  --muted: #a29c91;
  --gold: #ff9134;
  --line: rgba(214, 171, 79, 0.2);
  --green: #73d6a4;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; line-height: 1.7; }
a { color: var(--gold); }
.legal-shell { width: min(calc(100% - 36px), 900px); margin: 0 auto; padding: 42px 0 80px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.legal-brand img { width: 34px; height: 24px; object-fit: contain; }
.legal-kicker { margin: 58px 0 12px; color: #a68750; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; color: var(--text); font-size: clamp(38px, 7vw, 66px); line-height: 1; letter-spacing: -.06em; }
.legal-intro { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.legal-updated { margin-top: 15px; color: #777168; font-size: 12px; }
/* The generator emits one .legal-clause per clause rather than a single card,
   so a long document can be scanned and linked to by anchor. */
.legal-clause { margin-top: 26px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-entity { border-color: rgba(255, 145, 52, .38); background: linear-gradient(180deg, rgba(255, 110, 1, .07), transparent 60%), var(--surface); }
.legal-entity strong { color: #f1ece2; }
h2 { margin: 0 0 12px; color: #f1ece2; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
h3 { margin: 22px 0 8px; color: #e6dfd3; font-size: 15px; font-weight: 700; }
h3::before { color: var(--gold); content: "— "; }
.legal-clause p { margin: 0 0 12px; color: #aaa49a; font-size: 14.5px; }
.legal-clause p:last-child { margin-bottom: 0; }
/* Readability on the longest document: 4,900 words of 14.5px text needs a
   comfortable measure and generous leading. */
.legal-clause p { max-width: 74ch; }
.legal-footnote { margin-top: 22px; color: #777168; font-size: 12.5px; max-width: 74ch; }
.legal-note { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(255, 145, 52, .3); border-radius: 8px; background: rgba(255, 110, 1, .06); color: #d6c29e; font-size: 13px; }
.legal-contact { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 18px; }
.legal-footer { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: #68635b; font-size: 12px; }
@media (max-width: 600px) { .legal-clause { padding: 22px 18px; } .legal-intro { font-size: 15px; } h2 { font-size: 19px; } }
/* Long documents are read on phones and on screens with reduced motion set;
   neither should cost the reader their place or their legibility. */
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* The review notice sits above the clauses on purpose. A reader who has to
   scroll to discover the documents are unreviewed has already relied on them. */
.legal-review {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255 145 52, .42);
  border-left-width: 3px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255 110 1, .09), rgba(255 110 1, .03));
}
.legal-review strong {
  display: block;
  margin-bottom: 7px;
  color: #ffb376;
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-review p { max-width: 74ch; margin: 0; color: #c3b49c; font-size: 13.5px; line-height: 1.7; }
