/* Shared stylesheet for the static legal/compliance stub pages on apex.
   Mirrors the landing palette so the visitor stays inside the same
   visual identity. Pages are intentionally text-heavy and conservative
   — these are pre-launch placeholders that will be replaced with
   counsel-reviewed final docs ahead of mainnet. */
:root {
  --bg-grad-1: #0d0a06;
  --bg-grad-2: #050505;
  --gold: #d4a017;
  --gold-bright: #f3d98a;
  --gold-dim: #b8860b;
  --text: #f5efe2;
  --text-dim: #a39b89;
  --border: rgba(212, 160, 23, 0.18);
  --border-strong: rgba(212, 160, 23, 0.45);
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 160, 23, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 28px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f3d98a 0%, #d4a017 50%, #e8c04e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
}
.logo .o {
  display: inline-block;
  font-size: 1.55em;
  line-height: 1;
  vertical-align: -0.18em;
  margin: 0 -0.14em;
  -webkit-text-fill-color: #f9edc4;
  color: #f9edc4;
  background: none;
  filter: drop-shadow(0 0 7px rgba(232, 192, 78, 0.85));
}
.crumbs {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-dim);
}
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }

main h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}
main .updated {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0 0 24px;
}
.draft-banner {
  border: 1px solid var(--border-strong);
  background: rgba(212, 160, 23, 0.06);
  color: var(--gold-bright);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 0 0 28px;
}
main h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 32px 0 8px;
  color: var(--gold-bright);
}
main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--text);
}
main p, main li { color: var(--text); font-size: 15px; }
main ul, main ol { padding-left: 1.3rem; margin: 6px 0 12px; }
main li { margin: 4px 0; }
main code {
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}
main a { color: var(--gold-bright); }

/* Footer — mirrors the SPA's <Footer /> 1:1 (same DOM, same classes,
   same metrics). Sits outside .shell so the gold gradient divider can
   span the viewport edge-to-edge like the app. */
.footer {
  margin-top: 64px;
  border-top: none;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 12, 0.98));
  position: relative;
  color: var(--text-dim);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.4), rgba(232, 192, 78, 0.6), rgba(212, 160, 23, 0.4), transparent);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}
.footer-brand .logo-o {
  display: inline-block;
  font-size: 1.45em;
  line-height: 1;
  vertical-align: -0.16em;
  margin: 0 -0.14em;
  color: #f9edc4;
  filter: drop-shadow(0 0 6px rgba(232, 192, 78, 0.7));
}
.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.775rem;
  max-width: 500px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links-secondary { margin-top: -0.25rem; margin-bottom: 1rem; }
.footer-links-secondary a { font-size: 0.78rem; color: var(--text-dim); }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 520px) {
  .shell { padding: 28px 18px 40px; }
}
