﻿/* ============================================================
   AI GAMES FZ — aigames.ae
   Design system based on Azur Games brand
   (Onest font · #1256FB azure · #030E28 navy · #F4F7FB mist)
   ============================================================ */

/* ---- Self-hosted fonts (no third-party CDN, GDPR-friendly) ---- */
/* Onest — variable weight axis, Latin (used site-wide) */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../static/font/onest-latin.woff2") format("woff2");
}
/* Cairo — variable weight axis, Arabic + Latin (used on ar.html) */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../../static/font/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891,
    U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../../static/font/cairo-latin.woff2") format("woff2");
}

:root {
  --bg: #F4F7FB;
  --ink: #0E111A;
  --ink-soft: #46506B;
  --navy: #030E28;
  --navy-2: #0A1838;
  --blue: #1256FB;
  --blue-dark: #0042E2;
  --blue-deep: #003BCA;
  --blue-soft: #73A5FF;
  --mist: #DDE2F5;
  --muted: #B7BFD3;
  --white: #FFFFFF;
  --pink: #E40046;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px rgba(3, 14, 40, .08);
  --shadow-hover: 0 18px 50px rgba(18, 86, 251, .18);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Onest", Tahoma, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(18, 86, 251, .35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.btn-ghost:hover {
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--mist);
}
.btn-light:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(3, 14, 40, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--white);
}
.logo:hover { color: var(--white); }
.logo .logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0;
}
.logo .logo-co { color: var(--blue-soft); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--white); }
.site-nav .btn { padding: 10px 22px; font-size: 14px; }
.site-nav .btn.btn-primary { color: var(--white); }

/* language switcher pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 16px !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
  transition: box-shadow .2s, color .2s;
}
.lang-switch:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }

/* hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark-page variant (policy pages use light header) */
.site-header.on-light.scrolled {
  background: rgba(244, 247, 251, .92);
  box-shadow: 0 1px 0 var(--mist);
}
.site-header.on-light .logo,
.site-header.on-light .site-nav a { color: var(--ink); }
.site-header.on-light .logo .logo-co { color: var(--blue); }
.site-header.on-light .site-nav a:hover { color: var(--blue); }
.site-header.on-light .nav-toggle span { background: var(--ink); }
.site-header.on-light .lang-switch { box-shadow: inset 0 0 0 1.5px var(--mist); color: var(--ink); }

/* Dark-page variant (policy pages use light header) */
.site-header.on-light.scrolled {
  background: rgba(244, 247, 251, .92);
  box-shadow: 0 1px 0 var(--mist);
}
.site-header.on-light .logo,
.site-header.on-light .site-nav a { color: var(--ink); }
.site-header.on-light .logo .logo-co { color: var(--blue); }
.site-header.on-light .site-nav a:hover { color: var(--blue); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 180px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 86, 251, .38) 0%, rgba(18, 86, 251, 0) 65%);
  top: -340px; right: -260px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 66, 226, .25) 0%, rgba(0, 66, 226, 0) 65%);
  bottom: -380px; left: -220px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 26px;
}
.hero .eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 13ch;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--blue-soft); }
.hero .lead {
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 42px;
}
.hero .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* floating icons strip in hero */
.hero-icons {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 22px;
  z-index: 0;
  opacity: .92;
}
.hero-icons img {
  width: 120px; height: 120px;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: float 6s ease-in-out infinite;
}
.hero-icons img:nth-child(odd) { transform: translateY(-26px); }
.hero-icons img:nth-child(2) { animation-delay: -1.5s; }
.hero-icons img:nth-child(3) { animation-delay: -3s; }
.hero-icons img:nth-child(4) { animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* ---------- Stats band ---------- */

.stats {
  background: var(--navy);
  padding: 0 0 90px;
  color: var(--white);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  border-radius: var(--radius);
  padding: 34px 36px;
}
.stat .num {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--white);
}
.stat .num .accent { color: var(--blue-soft); }
.stat .cap { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.section-head .sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* ---------- Games grid ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(18, 86, 251, .25);
}
.game-card .game-top {
  display: flex;
  align-items: center;
  gap: 18px;
}
.game-card .game-icon {
  width: 86px; height: 86px;
  border-radius: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(3, 14, 40, .18);
}
.game-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.game-card .game-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(18, 86, 251, .09);
  border-radius: 999px;
  padding: 5px 12px;
  width: fit-content;
}
.game-card .game-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.store-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--mist);
  transition: background .2s, color .2s, border-color .2s;
}
.store-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.store-link svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

/* ---------- Spotlight (featured flagship games) ---------- */

.spotlight { padding-bottom: 70px; }
.section-grid { padding-top: 70px; }

.spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
.spot:first-of-type { margin-top: 8px; }
.spot-reverse .spot-media { order: 2; }

.spot-body .spot-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(3, 14, 40, .18);
  margin-bottom: 18px;
}
.spot-body .game-stat { margin-top: 0; margin-bottom: 14px; }
.spot-body h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.spot-body p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 46ch;
}
.spot-body .game-links { display: flex; gap: 12px; max-width: 420px; }

/* media: brand-gradient panel holding screenshots — both panels share
   the same min-height so the two spotlight rows read as a matched pair */
.spot-media {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--blue-deep) 130%);
  overflow: hidden;
}
.spot-media::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 165, 255, .35) 0%, transparent 65%);
  top: -140px; right: -90px;
  pointer-events: none;
}
.spot-media img {
  position: relative;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
  transition: transform .3s;
}
/* tall: three portrait phone shots, middle one raised */
.spot-media-tall img { height: 270px; width: auto; }
.spot-media-tall img:nth-child(1) { transform: translateY(14px) rotate(-3deg); }
.spot-media-tall img:nth-child(3) { transform: translateY(14px) rotate(3deg); }
.spot-media-tall img:nth-child(2) { z-index: 2; }
.spot:hover .spot-media-tall img:nth-child(2) { transform: translateY(-4px); }
/* wide: one landscape shot, sized to match the phone-row height */
.spot-media-wide img {
  width: 90%;
  max-width: 520px;
  height: auto;
  transform: rotate(-1deg);
}
.spot:hover .spot-media-wide img { transform: rotate(0) translateY(-4px); }

/* ---------- About ---------- */

.about { background: var(--white); }
.about .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: start;
}
.about p { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.about p strong { color: var(--ink); }
.about-points { display: grid; gap: 18px; }
.about-point {
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.about-point .pt {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-point .pt::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--blue);
  flex-shrink: 0;
}
.about-point .pd { color: var(--ink-soft); font-size: 15px; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 32px;
  padding: 70px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 86, 251, .35) 0%, transparent 65%);
  top: -200px; right: -150px;
}
.contact-card .container-inner { position: relative; z-index: 1; }
.contact-card h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.contact-card .sub { color: var(--muted); font-size: 17px; margin-bottom: 36px; max-width: 52ch; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}
.contact-item {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: rgba(255, 255, 255, .04);
}
.contact-item .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 10px;
}
.contact-item .value { font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.contact-item a.value { display: inline-block; color: var(--white); font-weight: 700; font-size: 20px; }
.contact-item a.value:hover { color: var(--blue-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--muted);
  padding: 64px 0 36px;
  margin-top: 110px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .f-title {
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p, .site-footer li { font-size: 14.5px; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13.5px;
}
.footer-bottom .legal-links { display: flex; gap: 24px; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 200;
  margin: 0 auto;
  max-width: 760px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(3, 14, 40, .3);
  border: 1px solid var(--mist);
  padding: 24px 28px;
  display: none;
}
.cookie-banner.visible { display: block; animation: cookie-in .35s ease; }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 24px; font-size: 14px; }
.cookie-banner .btn-reject {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--mist);
}
.cookie-banner .btn-reject:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }

/* ---------- Reveal animation ---------- */

/* hidden state only when JS is running (html.js-anim), so content
   stays visible without JavaScript */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-icons img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RTL / Arabic (ar.html — dir="rtl")
   ============================================================ */

html[dir="rtl"] body {
  font-family: "Cairo", "Onest", Tahoma, sans-serif;
  line-height: 1.7;
}
/* keep the wordmark and Latin tokens left-to-right */
[dir="rtl"] .logo { direction: ltr; }
[dir="rtl"] .stat .num { direction: ltr; }
/* mirror the floating hero cluster to the opposite side */
[dir="rtl"] .hero-icons {
  right: auto; left: 4%;
  transform: translateY(-50%) rotate(-8deg);
}
/* the eyebrow accent bar reads from the right */
[dir="rtl"] .hero h1 { margin-left: 0; }
/* tighten Arabic heading line-height a touch */
[dir="rtl"] .hero h1,
[dir="rtl"] .section-head h2,
[dir="rtl"] .spot-body h3 { line-height: 1.18; }

/* ============================================================
   Legal pages (Privacy Policy / Terms of Use / Cookie Policy)
   ============================================================ */

.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 86, 251, .3) 0%, transparent 65%);
  top: -300px; right: -200px;
}
.legal-hero h1 {
  position: relative;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.02em;
}
.legal-hero .legal-sub { position: relative; color: var(--muted); margin-top: 12px; font-size: 16px; }

.shell { padding: 60px 0 30px; }
.frame { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.switcher {
  display: inline-flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 42px;
}
.switcher button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 11px 26px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.switcher button:hover { color: var(--ink); }
.switcher button.active {
  background: var(--blue);
  color: var(--white);
}

.doc { display: none; }
.doc.active { display: block; }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.doc-header { margin-bottom: 34px; }
.doc-header .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.doc-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.doc-header .meta { color: var(--ink-soft); font-size: 15px; }

.doc-main {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 48px 52px;
  font-size: 15.5px;
  color: #2A3247;
}
.doc-main p { margin-bottom: 14px; }
.doc-main ul, .doc-main ol { margin: 0 0 16px 22px; }
.doc-main li { margin-bottom: 8px; }
.doc-main strong { color: var(--ink); }
.doc-main a { word-break: break-word; }

.policy-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--mist); }
.policy-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.policy-section h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 16px;
  scroll-margin-top: 110px;
}
.policy-section h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 10px;
}

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--mist); border-radius: var(--radius-sm); }
.policy-table, .cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}
.policy-table th, .cookie-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  white-space: nowrap;
}
.policy-table td, .cookie-table td {
  border-top: 1px solid var(--mist);
  padding: 12px 14px;
  vertical-align: top;
}
.policy-table tr:nth-child(even) td, .cookie-table tr:nth-child(even) td { background: var(--bg); }
.cookie-table td[rowspan] { background: var(--white) !important; border-left: 1px solid var(--mist); }
.cookie-table code, .policy-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: rgba(18, 86, 251, .07);
  color: var(--blue-deep);
  border-radius: 6px;
  padding: 2px 6px;
}

.toc-card {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.toc-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
}
.toc-list a:hover {
  color: var(--blue);
  background: rgba(18, 86, 251, .06);
  border-left-color: var(--blue);
}

.footer-note { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-icons { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; max-height: none; order: -1; }
  .spot, .spot-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .spot-reverse .spot-media { order: 0; }
}

@media (max-width: 860px) {
  .stats .container { grid-template-columns: 1fr; }
  .about .container { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 44px 28px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 80px; }
  .doc-main { padding: 30px 22px; }
  .spot-media-tall img { height: 210px; }

  /* mobile drawer nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 14px 24px 26px;
    box-shadow: 0 16px 40px rgba(3, 14, 40, .4);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a {
    color: var(--white);
    font-size: 17px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .site-nav .lang-switch {
    margin: 14px 0 4px;
    justify-content: center;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25);
  }
  .site-nav .btn { margin-top: 14px; justify-content: center; }
  /* on light (legal) pages the drawer stays dark for contrast */
  .site-header.on-light .site-nav a { color: var(--white); }
}
