/* =========================================================
   E-GAMES TECHNOLOGIES - shared style for all Privacy Policy pages
   (privacy.html hub + every file inside /privacy/)
   Matches the main website: dark background, pink accent, Outfit font
   ========================================================= */
:root {
  --bg-main: #050505;
  --bg-card: #0f0f13;
  --text-white: #ffffff;
  --text-body: #d4d4d8;
  --text-gray: #a1a1aa;
  --pink-accent: #ff0066;
  --pink-glow: rgba(255, 0, 102, 0.15);
  --border-line: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background: var(--bg-main); color: var(--text-body); line-height: 1.75; overflow-x: hidden; }
a { color: var(--pink-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.bg-glow { position: fixed; inset: 0; z-index: -1; background: var(--bg-main); overflow: hidden; }
.bg-glow::before { content: ''; position: absolute; width: 800px; height: 800px; background: radial-gradient(circle, rgba(255,0,102,0.08) 0%, transparent 60%); top: -200px; left: -200px; filter: blur(80px); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(5,5,5,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.topbar img { height: 64px; width: auto; display: block; }
.topbar nav { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar nav a { color: var(--text-gray); font-weight: 500; font-size: 15px; }
.topbar nav a:hover { color: var(--text-white); text-decoration: none; }
.topbar .right { display: flex; align-items: center; gap: 20px; }

/* Page hero */
.hero { padding: 56px 0 32px; text-align: center; }
.back { display: inline-block; margin-bottom: 28px; padding: 6px 16px; border: 1px solid var(--border-line); border-radius: 50px; color: var(--text-gray); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.back:hover { color: #fff; border-color: rgba(255,255,255,0.4); text-decoration: none; }
.hero .app-icon { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; margin: 0 auto 20px; background: #fff; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.hero .app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.15; }
.hero .kicker { color: var(--pink-accent); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.hero .meta { color: var(--text-gray); margin-top: 12px; font-size: 15px; }

/* Policy body */
.policy { background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 24px; padding: 40px; margin-bottom: 60px; }
.policy h2 { color: var(--pink-accent); font-size: 21px; font-weight: 700; margin: 32px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin-bottom: 14px; }
.policy ul { padding-left: 22px; margin-bottom: 14px; }
.policy li { margin: 6px 0; }
.policy strong { color: #fff; }
.policy .intro { background: rgba(255,0,102,0.06); border: 1px solid rgba(255,0,102,0.2); border-radius: 16px; padding: 18px 20px; margin-bottom: 8px; }

/* Hub page: list of apps */
.app-list { display: grid; gap: 20px; margin-bottom: 60px; }
.app-row { display: flex; align-items: center; gap: 20px; background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 24px; padding: 22px 26px; color: inherit; transition: 0.3s; }
.app-row:hover { border-color: rgba(255,0,102,0.35); box-shadow: 0 15px 40px var(--pink-glow); transform: translateY(-3px); text-decoration: none; }
.app-row .icon { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; background: #fff; flex-shrink: 0; }
.app-row .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-row .info { flex: 1; }
.app-row h3 { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; }
.app-row p { color: var(--text-gray); font-size: 14px; }
.app-row .go { color: var(--pink-accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.hub-note { color: var(--text-gray); text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* Footer */
footer { border-top: 1px solid var(--border-line); padding: 28px 0 40px; text-align: center; color: #666; font-size: 14px; }
footer a { color: var(--text-gray); margin: 0 10px; }

@media (max-width: 600px) {
  .topbar img { height: 48px; }
  .topbar nav { gap: 14px; }
  .policy { padding: 26px 20px; border-radius: 18px; }
  .app-row { flex-wrap: wrap; padding: 18px; }
  .app-row .go { width: 100%; }
}

/* Sub-headings and highlighted card inside a policy (used by QR Nexa) */
.policy h3 { color: #fff; font-size: 17px; font-weight: 700; margin: 20px 0 6px; }
.policy .card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-line); border-radius: 16px; padding: 20px 22px; margin: 28px 0 8px; }
.policy .card h2 { margin-top: 6px; }
.policy .pill { display: inline-block; background: rgba(255,0,102,0.12); color: var(--pink-accent); border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* =========================================
   DARK / LIGHT THEME SWITCH (top bar)
   ========================================= */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-line); border-radius: 50px; background: var(--bg-card); flex-shrink: 0; }
.theme-switch button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-gray); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.theme-switch button:hover { color: var(--text-white); }
.theme-switch button.active { background: var(--pink-accent); color: #fff; }
.theme-switch svg { width: 15px; height: 15px; }

/* LIGHT THEME (same switch as the main website) */
:root[data-theme="light"] {
  --bg-main: #f6f6fa;
  --bg-card: #ffffff;
  --text-white: #16161d;
  --text-body: #33333f;
  --text-gray: #5b5b6b;
  --pink-glow: rgba(255, 0, 102, 0.12);
  --border-line: rgba(0, 0, 0, 0.09);
}
:root[data-theme="light"] .topbar { background: rgba(255,255,255,0.85); }
:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .policy strong,
:root[data-theme="light"] .policy h3,
:root[data-theme="light"] .app-row h3 { color: var(--text-white); }
:root[data-theme="light"] .back:hover { color: var(--text-white); border-color: rgba(0,0,0,0.3); }
:root[data-theme="light"] .policy .card { background: #fafafc; }
:root[data-theme="light"] .hero .app-icon,
:root[data-theme="light"] .app-row:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
:root[data-theme="light"] footer { color: #777; }
:root[data-theme="light"] .topbar img { background: #000; border-radius: 14px; padding: 4px 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
