/* Shared styles for the standalone legal pages (terms.html, privacypolicy.html).
   These are plain static pages in public/ — served by Netlify at /terms and
   /privacypolicy (clean URLs by default). They deliberately do NOT depend on
   the React app or index.css; everything they need is declared here. Fonts are
   the same local files the splash uses (public/fonts) plus Sora via Google. */

/* Pyre Sans — brand display (ships Book / Medium / Semibold; 600 is heaviest). */
@font-face {
  font-family: 'Pyre Sans';
  src: url('/fonts/SPPyreSans-Md.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pyre Sans';
  src: url('/fonts/SPPyreSans-Sb.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
/* MD Thermochrome — eyebrow / mono-flavoured accents. */
@font-face {
  font-family: 'MD Thermochrome';
  src: url('/fonts/MDThermochrome0.3-Medium-Trial.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #1E1E1E;
  --paper: #F2ECDD;     /* warm off-white body text */
  --paper-dim: #B9B3A6; /* secondary text */
  --paper-faint: #8A8579;
  --ink-strong: #FCF8EE;
  --accent: #8D93FF;
  --rule: rgba(255, 255, 255, 0.12);
  --font-pyre: 'Pyre Sans', system-ui, sans-serif;
  --font-thermo: 'MD Thermochrome', 'Courier New', monospace;
  --font-body: 'Sora', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── top bar ── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 40px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.legal-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink-strong);
  line-height: 0;
}
.legal-wordmark:hover { text-decoration: none; opacity: 0.85; }
.legal-logo {
  height: 26px;
  width: auto;
  display: block;
}
.legal-back {
  font-family: var(--font-thermo);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.legal-back:hover { color: var(--ink-strong); text-decoration: none; }

/* ── document column ── */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 40px) 120px;
}
.legal-eyebrow {
  font-family: var(--font-thermo);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.legal-doc h1 {
  font-family: var(--font-pyre);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-bottom: 14px;
}
.legal-updated {
  font-size: 14px;
  color: var(--paper-faint);
  margin-bottom: 44px;
}

/* About-Pyre preamble callout */
.legal-callout {
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin-bottom: 56px;
}
.legal-callout-label {
  font-family: var(--font-thermo);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.legal-callout p { color: var(--paper); margin-bottom: 12px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout strong { color: var(--ink-strong); font-weight: 600; }

/* Section headings + body */
.legal-doc h2 {
  font-family: var(--font-pyre);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: 52px 0 16px;
}
.legal-doc h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-strong);
  margin: 32px 0 12px;
}
.legal-doc p { margin-bottom: 18px; }
.legal-doc ul { margin: 0 0 18px; padding-left: 22px; }
.legal-doc li { margin-bottom: 10px; }
.legal-doc strong { color: var(--ink-strong); font-weight: 600; }
.legal-doc .caps { text-transform: uppercase; letter-spacing: 0.01em; }

/* Privacy processing table */
.legal-table-wrap { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.legal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: 14px;
  line-height: 1.55;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--rule);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-strong);
  font-weight: 600;
  font-size: 13px;
}
.legal-table td { color: var(--paper-dim); }

/* ── footer ── */
.legal-footer {
  border-top: 1px solid var(--rule);
  max-width: 760px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 40px) 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-footer-copy {
  font-family: var(--font-thermo);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-faint);
}
.legal-footer-nav { display: flex; gap: 22px; }
.legal-footer-nav a {
  font-size: 13px;
  color: var(--paper-dim);
}
.legal-footer-nav a:hover { color: var(--ink-strong); text-decoration: none; }
