/* Shared look for the reading pages: FAQ, Terms of Service, Privacy Policy.
   Same family as the landing page: black, Rekt orange, Unbounded headings,
   Geist body, a logo-and-socials top bar and one quiet footer. No animated
   background, no racing stripe. Page-specific bits (FAQ tabs, accordion,
   tables) are at the bottom. */
:root {
  --orange: #FF5527; --orange-hi: #FF7A4D; --green: #07F1A3;
  --ink: #000; --card: #121216; --line: rgba(224, 224, 251, .10); --line-e: rgba(224, 224, 251, .16);
  --fg: #f4f4f6; --fg-mid: #c4c4ce; --fg-low: #8b8b98;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  font-family: var(--f-body); font-size: 17px; line-height: 1.65; color: var(--fg-mid);
  background: radial-gradient(70vmax 46vmax at 78% -6%, rgba(255, 85, 39, .14) 0%, transparent 62%), var(--ink);
  background-attachment: fixed; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-hi); text-decoration: underline; text-decoration-color: rgba(255, 122, 77, .4); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }

/* top bar: logo and three social links, as on the landing page */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad) 0; }
.top img { display: block; width: 104px; height: 52px; }
.soc { display: flex; gap: 6px; }
.soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--fg); opacity: .75; }
.soc a:hover, .soc a:focus-visible { opacity: 1; background: rgba(127, 127, 127, .18); }
.soc svg { width: 18px; height: 18px; fill: currentColor; }

/* the reading column */
.legal-content { width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(36px, 7vw, 84px) var(--pad) clamp(56px, 8vw, 96px); min-width: 0; }
.legal-content h1 { font-family: var(--f-display); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; color: #fff;
  font-size: clamp(34px, 6vw, 64px); margin: 0 0 clamp(26px, 4vw, 44px); text-wrap: balance; }
.legal-content h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #fff;
  font-size: clamp(21px, 2.6vw, 28px); margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); text-wrap: balance; }
.legal-content h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: #fff; font-size: 17px; margin: 30px 0 10px; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--orange); }
.legal-content strong, .legal-content .emphasis { color: #fff; font-weight: 600; }
.last-updated { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-hi); margin-bottom: 26px !important; }
.intro { font-size: 19px; color: var(--fg); }
.definition { padding-left: 18px; border-left: 2px solid var(--line-e); }
.caps-text { font-size: 15px; color: var(--fg); }
.regulatory-notice, .contact-info, .disclosure, .faq-note, .rewards-callout, .rewards-tldr {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.regulatory-notice > :last-child, .contact-info > :last-child, .disclosure > :last-child, .rewards-callout > :last-child, .rewards-tldr > :last-child { margin-bottom: 0; }
.faq-note { margin: 14px 0 0; font-size: 15px; }
.disclosure { margin-top: 44px; font-size: 15px; color: var(--fg-low); border-left-color: var(--line-e); }

/* footer: quiet and centred */
.legal-footer { padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; line-height: 1.6; color: var(--fg-low); display: grid; gap: 12px; }
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.legal-footer a { color: var(--fg-mid); text-decoration: none; }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { color: #fff; }
.legal-footer p { margin: 0 auto; max-width: 78ch; }

/* ── FAQ ── */
.faq-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 26px; padding: 4px var(--pad); scrollbar-width: none; }
.faq-tabs::-webkit-scrollbar { display: none; }
.faq-tab { flex: none; height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 700 14px var(--f-display); letter-spacing: -.01em; color: var(--fg-mid); background: var(--card); border: 1px solid var(--line-e);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.faq-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .34); }
.faq-tab.is-active { background: var(--orange); border-color: var(--orange); color: #000; }
.faq-panel { animation: faqPanelFade .25s ease; }
.faq-panel[hidden] { display: none; }
@keyframes faqPanelFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.faq-list { margin-bottom: 36px; }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left; color: #fff; }
.faq-question span { font: 700 clamp(16px, 1.9vw, 19px)/1.3 var(--f-display); letter-spacing: -.015em; }
.faq-question svg { flex: none; width: 22px; height: 22px; stroke: var(--orange); transition: transform .25s ease; }
.faq-question:hover span { color: var(--orange-hi); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 24px; max-width: 70ch; }
.faq-item.open .faq-answer { display: block; animation: faqPanelFade .25s ease; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-subheading { font: 500 13px var(--f-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-hi) !important; margin: 20px 0 8px !important; }
.faq-category { margin-top: 44px; }
.rewards { margin-bottom: 36px; }
.rewards h3 { font-size: 19px; margin-top: 34px; }
.rewards code { font: 500 14px var(--f-mono); color: var(--orange-hi); background: var(--card); padding: 2px 6px; border-radius: 6px; }
.rewards-callout .callout-title { font: 700 16px var(--f-display); color: #fff; margin-bottom: 8px; }
.rewards-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rewards-split .rewards-callout { margin: 0; }
.rewards-disclaimer { font-size: 14px; color: var(--fg-low); }
.rewards-table-wrap { overflow-x: auto; margin: 16px calc(var(--pad) * -1) 22px; padding: 0 var(--pad); -webkit-overflow-scrolling: touch; }
.rewards-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.rewards-table thead th { text-align: left; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-low);
  padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-e); white-space: nowrap; }
.rewards-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-mid); vertical-align: top; }
.rewards-table td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
.rewards-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .faq-question { padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) { .faq-panel, .faq-item.open .faq-answer { animation: none; } .faq-question svg, .faq-tab { transition: none; } }
