/* ============================================================
   Ludo Battle — Policy Pages Shared Stylesheet
   Used by: terms, privacy, refund, fair-play, responsible-gaming, cookies
   ============================================================ */

:root {
  --bg: #0a0612;
  --bg-2: #110a1f;
  --bg-3: #1a0f2e;
  --ink: #f6f1e7;
  --ink-body: #d4cde0;
  --ink-mute: #b6acc6;
  --ink-dim: #7d7595;
  --line: rgba(246, 241, 231, 0.08);
  --line-strong: rgba(246, 241, 231, 0.18);

  --red: #ef4444;
  --green: #22c55e;
  --blue: #3b82f6;
  --yellow: #facc15;
  --gold: #fbbf24;
  --amber: #f59e0b;
  --magenta: #d946ef;

  --grad-cta: linear-gradient(135deg, #facc15 0%, #f59e0b 50%, #ef4444 100%);

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink-body);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--yellow); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 6, 18, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px;
  background: #000;
  box-shadow: 0 8px 24px -8px rgba(239, 68, 68, 0.5);
}
.logo-mark span { border-radius: 3px; }
.logo-mark span:nth-child(1) { background: var(--red); }
.logo-mark span:nth-child(2) { background: var(--yellow); }
.logo-mark span:nth-child(3) { background: var(--green); }
.logo-mark span:nth-child(4) { background: var(--blue); }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-mute);
}
.nav-links a { color: var(--ink-mute); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0612;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); color: #0a0612; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- PAGE HERO ---------- */
.policy-hero {
  position: relative;
  padding: clamp(50px, 7vw, 100px) 0 clamp(30px, 4vw, 50px);
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(239, 68, 68, 0.12), transparent 60%),
    radial-gradient(80% 60% at 100% 50%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(250, 204, 21, 0.08), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--ink); }

.policy-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.policy-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 900px;
}
.policy-title .accent {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.policy-lede {
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--ink-mute);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.policy-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
}
.policy-meta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ---------- POLICY BODY ---------- */
.policy-body {
  padding: clamp(50px, 6vw, 90px) 0 clamp(60px, 7vw, 110px);
}
.policy-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 960px) {
  .policy-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Table of contents */
.toc-wrap {
  position: sticky;
  top: 100px;
}
@media (max-width: 960px) {
  .toc-wrap { position: static; }
  .toc-mobile-toggle {
    display: block !important;
  }
  .toc { display: none; }
  .toc.open { display: block; }
}
.toc-mobile-toggle {
  display: none;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-family: var(--body);
}
@media (max-width: 960px) {
  .toc-mobile-toggle { display: flex; }
}

.toc-title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.toc ul {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
@media (max-width: 960px) {
  .toc {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    margin-top: 8px;
  }
  .toc ul { border-left: none; padding-left: 0; }
}
.toc li {
  position: relative;
  margin-bottom: 4px;
}
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
  border-left: 2px solid transparent;
  margin-left: -14px;
  padding-left: 14px;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}

/* Content area */
.policy-content {
  max-width: 760px;
  font-size: 16px;
  color: var(--ink-body);
}
.policy-content h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 18px;
  scroll-margin-top: 110px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content h2 .num {
  font-size: 0.6em;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.policy-content h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 19px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.policy-content p {
  margin-bottom: 18px;
  line-height: 1.75;
}
.policy-content strong { color: var(--ink); font-weight: 600; }
.policy-content em { color: var(--ink); font-style: italic; }

.policy-content ul.bullets,
.policy-content ol.ordered {
  margin: 0 0 24px;
  padding-left: 0;
}
.policy-content ul.bullets li,
.policy-content ol.ordered li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.policy-content ul.bullets li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.policy-content ol.ordered { counter-reset: lst; }
.policy-content ol.ordered li {
  counter-increment: lst;
}
.policy-content ol.ordered li::before {
  content: counter(lst) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

.callout {
  margin: 24px 0;
  padding: 22px 26px;
  border-radius: var(--r);
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-left: 3px solid var(--gold);
  position: relative;
}
.callout strong { color: var(--gold); display: block; margin-bottom: 6px; font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.callout p { margin-bottom: 0; font-size: 15px; }
.callout.warn {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  border-left-color: var(--red);
}
.callout.warn strong { color: var(--red); }
.callout.info {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
  border-left-color: var(--blue);
}
.callout.info strong { color: var(--blue); }
.callout.safe {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.2);
  border-left-color: var(--green);
}
.callout.safe strong { color: var(--green); }

.contact-card {
  margin-top: 40px;
  padding: 30px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.12), transparent 50%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
}
.contact-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 0;
}
.contact-card p { font-size: 14.5px; color: var(--ink-mute); margin-bottom: 14px; }
.contact-card .row {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14.5px;
}
.contact-card .row span { color: var(--ink-mute); }
.contact-card .row a { color: var(--gold); font-weight: 600; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg);
  padding: clamp(60px, 7vw, 90px) 0 30px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p {
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 340px;
}
.foot-col h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul li a {
  color: var(--ink-mute);
  font-size: 14.5px;
}
.foot-col ul li a:hover { color: var(--gold); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--ink); color: #0a0612; border-color: var(--ink); }

.foot-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-dim);
}
.foot-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-bottom .legal a { color: var(--ink-dim); }
.foot-bottom .legal a:hover { color: var(--ink); }
