/* ============================================
   OnGameUK — Shared Stylesheet
   ============================================ */

:root {
  --future-dusk: #2C3549;
  --cyber-lime: #E5FF00;
  --aquatic-awe: #00E5FF;
  --neon-coral: #FF4D4D;
  --champagne: #FBF3E8;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--champagne);
  color: var(--future-dusk);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

/* ============================================
   HEADER — Sticky + Hamburger
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--future-dusk);
  padding: 18px 6%;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding: 12px 6%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand — clickable logo */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
  transition: height 0.3s ease, opacity 0.2s ease;
}

.site-header.scrolled .brand img {
  height: 30px;
}

.brand:hover img { opacity: 0.9; }

/* Desktop nav */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--cyber-lime);
}

.nav-cta {
  background: var(--cyber-lime);
  color: var(--future-dusk) !important;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--champagne);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,53,73,0.97);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-overlay a {
  text-decoration: none;
  color: var(--champagne);
  font-size: 22px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-nav-overlay a:hover {
  color: var(--cyber-lime);
}

.mobile-nav-overlay .nav-cta {
  background: var(--cyber-lime);
  color: var(--future-dusk) !important;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  margin-top: 10px;
}

/* Push body below fixed header */
body { padding-top: 90px; }

/* ============================================
   FOOTER — Standardised 4-column
   ============================================ */
.site-footer {
  background: #1f2738;
  padding: 80px 6% 40px;
  color: rgba(255,255,255,0.85);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-col h4 {
  margin-bottom: 18px;
  color: var(--champagne);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyber-lime);
}

/* Footer plain text items (non-linked) */
.footer-col span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ============================================
   DARK CTA SECTION — Shared
   ============================================ */
.dark-cta {
  background: var(--future-dusk);
  color: var(--champagne);
  text-align: center;
  padding: 70px 6%;
}

.dark-cta h2 {
  font-size: 36px;
  margin-bottom: 25px;
}

.dark-cta a {
  display: inline-block;
  background: var(--cyber-lime);
  color: var(--future-dusk);
  padding: 16px 34px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark-cta a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* ============================================
   COMMON SECTION BLOCKS
   ============================================ */
.section {
  max-width: 1000px;
  margin: 100px auto;
  padding: 0 6%;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.section p {
  margin-bottom: 20px;
  font-size: 17px;
}

.section ul {
  margin: 20px 0 0 20px;
}

.section li {
  margin-bottom: 10px;
}

/* ============================================
   HERO — Generic dark hero
   ============================================ */
.page-hero {
  position: relative;
  min-height: 55vh;
  background: linear-gradient(135deg, #1f2738, var(--future-dusk));
  display: flex;
  align-items: center;
  padding: 0 6%;
  overflow: hidden;
  margin-top: -90px;
  padding-top: 90px;
}

.page-hero-inner {
  max-width: 900px;
  color: var(--champagne);
  z-index: 2;
}

.page-hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 20px;
  opacity: 0.9;
}

/* ============================================
   LEGAL PAGE STYLES (terms, privacy, cookies)
   ============================================ */
.legal-container {
  max-width: 850px;
  margin: 60px auto;
  background: white;
  padding: 60px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.legal-container h2 {
  margin-top: 50px;
  font-size: 24px;
  position: relative;
  padding-bottom: 12px;
}

.legal-container h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--cyber-lime);
}

.legal-container p {
  margin-top: 18px;
  font-size: 16px;
}

.legal-container ul {
  margin-top: 18px;
  padding-left: 20px;
}

.legal-container li {
  margin-bottom: 8px;
}

.back-to-top {
  display: inline-block;
  margin-top: 60px;
  font-size: 14px;
  text-decoration: none;
  color: var(--future-dusk);
  font-weight: 500;
  transition: 0.2s;
}

.back-to-top:hover {
  color: var(--cyber-lime);
  transform: translateY(-2px);
}

/* Legal hero — simple dark banner */
.legal-hero {
  background: var(--future-dusk);
  color: white;
  padding: 60px 6%;
  margin-top: -90px;
  padding-top: 150px;
}

.legal-hero h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.legal-hero p {
  opacity: 0.75;
  font-size: 15px;
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop nav */
  .hamburger { display: block; }
  .nav { display: none; }

  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 17px; }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .dark-cta { padding: 50px 6%; }
  .dark-cta h2 { font-size: 28px; }

  .section h2 { font-size: 26px; }

  .legal-container { margin: 40px 20px; padding: 40px 30px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }

  .page-hero { min-height: 45vh; }
  .page-hero h1 { font-size: 28px; }

  .legal-container { padding: 30px 20px; }
}
