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

:root {
  --color-primary: #1a3a6b;
  --color-primary-dark: #0f2447;
  --color-accent: #e8a317;
  --color-accent-hover: #d4920f;
  --color-bg: #f5f6f8;
  --color-bg-light: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #6b7c93;
  --color-footer-bg: #e8eaed;
  --color-footer-text: #1a3a6b;
  --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 18+ Badge */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
  flex-shrink: 0;
}

.badge-18--large {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.badge-18--header {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.badge-18--hero {
  margin-bottom: 16px;
}

.badge-18--cta {
  margin-bottom: 12px;
}

.badge-18--footer {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.badge-18--fixed {
  width: 44px;
  height: 44px;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--secondary {
  background: #e0e4ea;
  color: var(--color-text);
}

.btn--secondary:hover {
  background: #d0d5dd;
}

.btn--large {
  padding: 16px 40px;
  font-size: 18px;
}

/* Age Popup */
.age-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-popup[hidden],
.age-popup.hidden {
  display: none;
}

.age-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.age-popup__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-popup__badge {
  margin-bottom: 20px;
}

.age-popup__box h2 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.age-popup__box p {
  color: var(--color-text-light);
  margin-bottom: 10px;
  font-size: 15px;
}

.age-popup__notice {
  font-size: 13px !important;
  font-style: italic;
}

.age-popup__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Age Blocked Screen */
.age-blocked {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.age-blocked[hidden] {
  display: none;
}

.age-blocked__content {
  max-width: 400px;
  padding: 40px;
}

.age-blocked__content h1 {
  margin: 20px 0 12px;
  font-size: 28px;
}

.age-blocked__content p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.age-blocked__content a {
  color: var(--color-accent);
}

/* Header */
.header {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 60px 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__disclaimer {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.7;
}

.hero__image img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--light {
  background: var(--color-bg-light);
}

.section h2 {
  font-size: 30px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-card h3 {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 18px;
}

.about-card p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.step p {
  color: var(--color-text-light);
  font-size: 14px;
}

/* CTA */
.section--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5298 100%);
  color: #fff;
  text-align: center;
}

.cta__inner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta__inner p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__note {
  margin-top: 14px !important;
  font-size: 13px !important;
  opacity: 0.7 !important;
  margin-bottom: 0 !important;
}

/* Policy Sections */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h3 {
  color: var(--color-primary);
  margin: 28px 0 10px;
  font-size: 18px;
}

.policy-content p {
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-size: 15px;
}

.policy-content ul {
  margin: 0 0 16px 24px;
  color: var(--color-text-light);
  font-size: 15px;
}

.policy-content li {
  margin-bottom: 6px;
}

/* Policy pages */
.page-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.page-section h1 {
  font-size: 32px;
  color: var(--color-primary);
  margin: 12px 0 28px;
}

.sitemap-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.sitemap-list li {
  margin-bottom: 8px;
}

.sitemap-list a {
  color: var(--color-primary);
  font-size: 15px;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #eef0f2;
  color: #002045;
  padding: 32px 0 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer a {
  color: #0066cc;
  text-decoration: underline;
}

.footer a:hover {
  color: #004999;
}

/* Partners — two columns side by side */
.footer__partners-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 28px;
}

.footer__partner-group {
  flex: 1;
}

.footer__partner-group--right {
  text-align: right;
}

.footer__partners-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #5a6f82;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__partner-group--right .footer__logos {
  justify-content: flex-end;
}

.footer__logos img {
  height: auto;
  max-height: 44px;
  max-width: 90px;
  width: auto;
  object-fit: contain;
}

.footer__logos img[alt="Best Bets"] { max-height: 32px; max-width: 70px; }
.footer__logos img[alt="Responsible Wagering Australia"] { max-height: 38px; max-width: 80px; }
.footer__logos img[alt="AFL"] { max-height: 40px; max-width: 50px; }
.footer__logos img[alt="NRL"] { max-height: 36px; max-width: 55px; }
.footer__logos img[alt="Melbourne Racing Club"] { max-height: 42px; max-width: 65px; }
.footer__logos img[alt="Racing SA"] { max-height: 40px; max-width: 70px; }
.footer__logos img[alt="Greyhound Racing Victoria"] { max-height: 38px; max-width: 75px; }
.footer__logos img[alt="Cricket Australia"] { max-height: 36px; max-width: 80px; }
.footer__logos img[alt="Football Federation Australia"] { max-height: 40px; max-width: 55px; }
.footer__logos img[alt="Tennis Australia"] { max-height: 36px; max-width: 70px; }

/* Nav + Social row */
.footer__nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  color: #0066cc;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: 6px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #002045;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
}

.social-icon:hover {
  background: #001530;
  text-decoration: none;
}

.social-icon svg {
  display: block;
}

/* Gambling help box */
.footer__gambling-help {
  background: #fff;
  border: 1px solid #d8dce0;
  border-radius: 20px;
  padding: 22px 40px;
  text-align: center;
  margin: 0 auto 28px;
  max-width: 700px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.footer__gambling-help h3 {
  font-size: 15px;
  font-weight: 800;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.footer__gambling-help p {
  font-size: 13px;
  color: #002045;
  margin: 0;
}

.footer__gambling-help a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 400;
}

/* Legal row */
.footer__legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__must-be {
  font-size: 13px;
  color: #002045;
  font-weight: 400;
}

.footer__18-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__legal-links a {
  color: #0066cc;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  white-space: nowrap;
}

.footer__session {
  font-size: 12px;
  color: #002045;
  white-space: nowrap;
}

/* Disclaimer */
.footer__disclaimer {
  text-align: left;
  color: #002045;
  font-size: 12px;
  line-height: 1.65;
}

.footer__disclaimer p {
  margin-bottom: 10px;
}

.footer__disclaimer a {
  color: #0066cc;
  text-decoration: underline;
}

.footer__copyright {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 400;
  color: #002045;
}

/* Fixed 18+ Badge */
.fixed-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero__content h1 {
    font-size: 28px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer__links-row,
  .footer__legal-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__partners-row {
    flex-direction: column;
    gap: 24px;
  }

  .footer__partner-group--right {
    text-align: left;
  }

  .footer__partner-group--right .footer__logos {
    justify-content: flex-start;
  }

  .footer__legal-links {
    flex-direction: column;
    gap: 10px;
  }
}
