/* ── TraderBuddy public pages ────────────────────────────────────────────────
   Shared by privacy.html, terms.html and support.html.

   Tokens are lifted from src/theme.css so these pages and the app are one
   product rather than two. The type roles are the app's own: Space Grotesk for
   the headline, Instrument Sans for everything read, JetBrains Mono for a date
   or a version.

   Unlike the app, these pages are read on laptops as often as phones — Apple
   opens them on a desktop during review — so the column is measured for prose
   and nothing is locked to a phone width. */

:root {
  --bg:        #0b0b0d;
  --bg-grad:   radial-gradient(130% 46% at 50% 0%, #15161a 0%, #0b0b0d 62%);
  --accent:    #04c198;
  --accent-2:  #08d9ae;
  --card:      linear-gradient(160deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.028) 55%, rgba(255,255,255,.018) 100%);
  --card-border: 1px solid rgba(255,255,255,.09);
  --card-inset:  inset 0 1px 0 rgba(255,255,255,.07);
  --hairline:  rgba(255,255,255,.08);
  --t1:        #ffffff;
  --t2:        rgba(255,255,255,.66);
  --t3:        rgba(255,255,255,.42);
  --t4:        rgba(255,255,255,.3);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  background-image: var(--bg-grad);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--t1);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding: 0 22px 96px;
}

.wrap { max-width: 660px; margin: 0 auto; }

/* ── masthead ─────────────────────────────────────────────────────────── */

header.top {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 30px;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.01em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.standfirst {
  font-size: 18px;
  color: var(--t2);
  line-height: 1.55;
  max-width: 54ch;
}

.stamp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--t3);
  margin-top: 22px;
  letter-spacing: -.01em;
}

/* ── sections ─────────────────────────────────────────────────────────── */

section { margin-bottom: 34px; }

h2 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--t3);
  margin-bottom: 12px;
  padding-left: 2px;
}

.island {
  background: var(--card);
  border: var(--card-border);
  box-shadow: var(--card-inset);
  border-radius: 16px;
  overflow: hidden;
}

.island p {
  color: var(--t2);
  padding: 17px 20px;
  border-top: 1px solid var(--hairline);
}
.island p:first-child { border-top: none; }
.island p strong { color: var(--t1); font-weight: 700; }

/* a question and its answer, for the support page */
.qa { padding: 17px 20px; border-top: 1px solid var(--hairline); }
.qa:first-child { border-top: none; }
.qa h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 6px;
  line-height: 1.35;
}
.qa p { color: var(--t2); padding: 0; border: none; font-size: 16.5px; }

/* ── contact card ─────────────────────────────────────────────────────── */

a.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: var(--card-border);
  box-shadow: var(--card-inset);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  margin-top: 34px;
  transition: border-color .18s ease;
}
a.contact:hover { border-color: rgba(4,193,152,.4); }
a.contact:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a.contact .label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
a.contact .label b { font-size: 16px; font-weight: 700; color: var(--t1); }
a.contact .label span { font-size: 13.5px; color: var(--t3); font-weight: 600; }
a.contact .arrow { color: var(--accent); font-size: 19px; line-height: 1; }

/* ── footer ───────────────────────────────────────────────────────────── */

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 14px;
  color: var(--t4);
}
footer a { color: var(--t3); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent); }
footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
footer .sep { color: var(--t4); }

a.inline { color: var(--accent); text-decoration: none; font-weight: 600; }
a.inline:hover { color: var(--accent-2); text-decoration: underline; }
a.inline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 560px) {
  body { font-size: 16px; padding: 0 17px 72px; }
  header.top { padding-top: 40px; }
  .island p, .qa { padding: 15px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
