/* Shared styling for the Terms and Privacy pages.
   Same world as the marketing site, tuned for reading long-form text. */

:root {
  --ground: #0A0810;
  --surface: #100D18;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-hi: rgba(255, 255, 255, 0.15);
  --ink: #F3F0FB;
  --ink-soft: #A8A2BE;
  --ink-mute: #6C6683;
  --violet: #8B7BFF;
  --violet-hi: #AB9EFF;
  --cyan: #5BD8E8;
  --warn: #E3AC52;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -30% -30% auto -30%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(91, 216, 232, .13), transparent 55%),
    radial-gradient(circle at 70% 18%, rgba(139, 123, 255, .20), transparent 58%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1.15rem, 5vw, 2rem) 5rem;
}

/* ─── Header ─────────────────────────────────────────── */
.mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 3rem;
  text-decoration: none;
  color: var(--ink);
}
.mark span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0 0 .6rem;
  text-wrap: balance;
}

.updated {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 2.5rem;
}

h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 3rem 0 .85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  text-wrap: balance;
}
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2rem; }

h3 {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 .5rem;
}

p { margin: 0 0 1.1rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; color: var(--ink-soft); }
li { margin-bottom: .55rem; }
li::marker { color: var(--ink-mute); }

a { color: var(--violet-hi); text-underline-offset: 2px; }

/* ─── Callouts ───────────────────────────────────────── */
.callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--hairline-hi);
  background: var(--surface);
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn {
  border-color: rgba(227, 172, 82, .35);
  background: rgba(227, 172, 82, .07);
}
.callout.warn strong { color: var(--warn); }

.callout .label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .6rem;
}
.callout.warn .label { color: var(--warn); }

/* ─── Data table ─────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .88rem;
}
th {
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--hairline-hi);
  white-space: nowrap;
}
td {
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.55;
}
tr:last-child td { border-bottom: none; }

/* ─── Footer ─────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--ink-mute);
}
footer a { color: var(--ink-mute); text-decoration: none; }
footer a:hover { color: var(--ink-soft); }

:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
