/* Shared styles for the inner pages (/about/, /privacy/, /terms/).
   Header, footer, buttons and background mirror the inline styles of index.html. */
:root {
  --bg: #0A0E1A;
  --card: #111419;
  --pink: #FF4D8D;
  --orange: #FF9A00;
  --purple: #9B5CFF;
  --cyan: #00E5FF;
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.68);
  --text-muted: rgba(255,255,255,0.42);
  --text-faint: rgba(255,255,255,0.28);
  --divider: rgba(255,255,255,0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) url('bg-flow.webp') no-repeat top center;
  background-size: 100% 100%;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#flow-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#flow-bg.on { opacity: 1; }
html.bg-live #flow-bg { display: block; }
html.bg-live body { background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.page { position: relative; z-index: 1; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,26,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border-color: var(--divider); color: #fff; }
.btn-outline:hover { border-color: var(--pink); }
.btn-pill { border-radius: 999px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Page heading ---------- */
.doc-hero { padding: 72px 0 36px; }
.eyebrow-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex-shrink: 0; }
.doc-hero h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  max-width: 820px;
  text-wrap: balance;
}
.doc-hero h1 .grad {
  background: linear-gradient(90deg, var(--pink) 0%, var(--orange) 35%, var(--purple) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 10px rgba(10,14,26,0.9));
}
.doc-hero .lead { max-width: 640px; margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.doc-meta { margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.doc-hero h1, .doc-hero .lead, .doc-meta, .eyebrow-plain, .section-title {
  text-shadow: 0 1px 14px rgba(10,14,26,0.95), 0 0 4px rgba(10,14,26,0.7);
}

/* ---------- Document card ---------- */
.doc {
  max-width: 820px;
  margin: 0 0 100px;
  padding: 44px 48px;
  background: rgba(17,20,25,0.94);
  border: 1px solid var(--divider);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.doc h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 40px 0 12px;
  scroll-margin-top: 96px;
  text-wrap: balance;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h2 .num { color: var(--pink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.doc p, .doc li { color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.doc p { margin: 0 0 12px; }
.doc strong { color: #fff; font-weight: 600; }
.doc a { color: var(--pink); text-decoration: underline; text-decoration-color: rgba(255,77,141,0.4); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--pink); }
.doc ul { margin: 0 0 12px; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.doc li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.doc-callout {
  margin: 0 0 32px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,77,141,0.10), rgba(155,92,255,0.10));
  border: 1px solid rgba(255,77,141,0.22);
}
.doc-callout p { margin: 0; color: #fff; }

/* Table of contents */
.toc { margin: 0 0 36px; padding: 0 0 28px; border-bottom: 1px solid var(--divider); }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; counter-reset: toc; }
.toc li { padding: 0; margin: 0 0 8px; break-inside: avoid; counter-increment: toc; font-size: 14px; line-height: 1.5; }
.toc li::before { content: counter(toc) '.'; position: static; display: inline-block; width: 24px; height: auto; background: none; border-radius: 0; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.toc a { color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: #fff; }

/* Details only the owner can supply (legal entity, jurisdiction…) */
.todo {
  color: #FFB347;
  background: rgba(255,154,0,0.12);
  border: 1px dashed rgba(255,154,0,0.5);
  border-radius: 6px;
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- About page ---------- */
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 20px; }
.about-block { margin: 0 0 72px; }
.about-intro {
  max-width: 820px;
  padding: 36px 40px;
  background: rgba(17,20,25,0.94);
  border: 1px solid var(--divider);
  border-radius: 24px;
}
.about-intro p { color: var(--text-secondary); font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.about-intro p:last-child { margin: 0; }
.about-intro strong { color: #fff; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.icon-badge {
  position: relative;
  isolation: isolate;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--divider);
}
.icon-badge::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, var(--accent, var(--purple)) 0%, transparent 70%);
  filter: blur(16px);
  opacity: 0.55;
  z-index: -1;
}
.icon-badge svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.i-pink { --accent: var(--pink); }
.i-orange { --accent: var(--orange); }
.i-purple { --accent: var(--purple); }
.i-cyan { --accent: var(--cyan); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { counter-increment: step; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.step-num::before { content: counter(step); }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.platform svg { width: 18px; height: 18px; }
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px 36px;
  border-radius: 24px;
  border: 1px solid rgba(255,77,141,0.22);
  background: linear-gradient(135deg, rgba(255,77,141,0.14), rgba(155,92,255,0.14)), rgba(17,20,25,0.94);
}
.about-cta h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.about-cta p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.about-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--divider); padding: 36px 0; background: rgba(10,14,26,0.6); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand { margin-bottom: 2px; }
.footer-brand span.tagline { font-size: 12px; color: var(--text-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; color: var(--text-secondary); font-size: 13px; transition: color 0.15s; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
}
.footer-social a:hover { border-color: var(--pink); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .doc-hero { padding: 44px 0 28px; }
  .doc-hero h1 { font-size: 30px; letter-spacing: -0.6px; hyphens: auto; overflow-wrap: break-word; }
  .doc-hero .lead { font-size: 16px; }
  .doc { padding: 28px 22px; border-radius: 20px; margin-bottom: 64px; }
  .about-intro { padding: 26px 22px; }
  .cards { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .about-block { margin-bottom: 56px; }
  .about-cta { padding: 26px 22px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
