/* Shared look for the legal pages (terms.html, privacy.html) - the same
   palette and fonts as the marketing site's index.html. */
:root {
  color-scheme: dark;
  --obsidian: #0B0E14;
  --surface: #151926;
  --surface-2: #1b2030;
  --border: rgba(244, 242, 250, 0.09);
  --border-strong: rgba(244, 242, 250, 0.16);
  --violet: #6D5EF5;
  --violet-light: #8B7CFF;
  --amber: #FFB020;
  --text: #F4F2FA;
  --muted: rgba(244, 242, 250, 0.72);
  --muted-2: rgba(244, 242, 250, 0.5);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 15.5px;
}
a { color: var(--violet-light); }
h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
header.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

.legal { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px 24px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } .toc { position: static !important; max-height: none !important; } }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 13.5px; }
.toc p { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px 0; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted-2); }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

article { min-width: 0; max-width: 780px; }
article h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px 0; }
.meta { color: var(--muted-2); font-size: 13.5px; margin: 0 0 28px 0; }
.summary { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 14px; padding: 18px 22px; margin: 0 0 36px 0; }
.summary h2 { font-size: 16px; margin: 0 0 8px 0; }
.summary ul { margin: 0; padding-left: 20px; color: var(--muted); }
.summary li { margin: 5px 0; }
article h2 { font-size: 22px; margin: 44px 0 12px 0; padding-top: 8px; scroll-margin-top: 84px; }
article h3 { font-size: 16.5px; margin: 26px 0 8px 0; scroll-margin-top: 84px; }
article p, article li { color: var(--muted); }
article p { margin: 0 0 14px 0; }
article ul, article ol { margin: 0 0 14px 0; padding-left: 22px; }
article li { margin: 6px 0; }
article strong { color: var(--text); }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
.table-wrap { overflow-x: auto; margin: 0 0 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
th { color: var(--text); font-weight: 700; background: var(--surface); }
.note { font-size: 13.5px; color: var(--muted-2); border-top: 1px solid var(--border); margin-top: 48px; padding-top: 18px; }

footer { border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; }
footer .inner { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }
@media print {
  header.site-nav, .toc, footer { display: none; }
  body { background: #fff; color: #000; }
  article p, article li, td, th { color: #000; }
  .legal { display: block; }
}
