/* Shared stylesheet for the three legal documents (/terms/, /privacy/, /disclaimer/).
   Deliberately one small file rather than inlined-per-page: these are long prose documents that
   are read rarely and are not LCP-sensitive, so one cached request beats duplicating ~6 kB of CSS
   three times. The landing page keeps its CSS inline for the opposite reason. */

:root {
  --bg: #0e1419;
  --surface: #151c23;
  --surface-2: #1c242c;
  --fg: #d8e2e4;
  --muted: #8a9aa0;
  --border: #232d36;
  --prior: #d9a441;
  --posterior: #63b0a8;
  --posterior-ink: #0b1215;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--posterior);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: #7cc3bb;
}

/* ── Header ──────────────────────────────────────────────────────────────────────────────── */
.legal-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.legal-header .inner {
  max-width: 52rem;
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
}
.brand .p {
  color: var(--prior);
}
.brand .s {
  color: var(--posterior);
}
.legal-header nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.legal-header nav a {
  color: var(--muted);
  text-decoration: none;
}
.legal-header nav a:hover,
.legal-header nav a[aria-current="page"] {
  color: var(--fg);
}
.legal-header nav a[aria-current="page"] {
  font-weight: 500;
}

/* ── Document ────────────────────────────────────────────────────────────────────────────── */
main {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 5rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  letter-spacing: -0.02em;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}
h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--fg);
}
p,
li {
  color: #c2ced1;
}
p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
li {
  margin-bottom: 0.45rem;
}
strong {
  color: var(--fg);
  font-weight: 600;
}

.meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

/* ── Callouts ────────────────────────────────────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--posterior);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout.warn {
  border-left-color: var(--prior);
}
.callout.warn strong:first-child {
  color: var(--prior);
}

/* ── The unmissable pre-launch banner. Delete the whole <aside class="draft"> when a lawyer
      has reviewed and you have filled every .fill placeholder. ─────────────────────────────── */
.draft {
  border: 1px solid var(--prior);
  border-radius: 10px;
  background: color-mix(in srgb, var(--prior) 11%, var(--surface));
  padding: 1.1rem 1.35rem;
  margin-bottom: 2.5rem;
  font-size: 0.93rem;
}
.draft strong {
  color: var(--prior);
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.draft p {
  margin: 0;
  color: #d3dddf;
}

/* Placeholders you MUST fill before launch — styled to be impossible to miss on the page. */
.fill {
  color: var(--prior);
  font-family: var(--mono);
  font-size: 0.9em;
  background: color-mix(in srgb, var(--prior) 13%, transparent);
  border-bottom: 1px dashed var(--prior);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

/* ── Table of contents ───────────────────────────────────────────────────────────────────── */
.toc {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}
.toc li {
  margin-bottom: 0.3rem;
  font-size: 0.93rem;
}
.toc a {
  text-decoration: none;
  color: #c2ced1;
}
.toc a:hover {
  color: var(--posterior);
  text-decoration: underline;
}

/* ── Definition-style table ──────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.93rem;
}
th,
td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  color: #c2ced1;
}

/* ── Footer ──────────────────────────────────────────────────────────────────────────────── */
.legal-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem clamp(1.25rem, 4vw, 2rem);
  font-size: 0.88rem;
  color: var(--muted);
}
.legal-footer .inner {
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.legal-footer nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}
.legal-footer a:hover {
  color: var(--fg);
}

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