/* CanadaNow - minimal, neutral layout */

:root {
  --bg-body: #050b10;
  --bg-alt: #08131c;
  --bg-card: #0d1722;
  --border-soft: rgba(255, 255, 255, 0.06);
  --accent: #34c4ff;
  --accent-soft: rgba(52, 196, 255, 0.18);
  --accent-strong: #1fb3f2;
  --text-main: #f4f7fb;
  --text-muted: #9ca9bc;
  --danger: #ff7676;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1a3350 0, transparent 52%),
    radial-gradient(circle at bottom right, #17293c 0, transparent 55%),
    #050b10;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

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

.section-lead {
  max-width: 720px;
  margin: 0 auto 2.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Age banner */

.age-banner {
  width: 100%;
  background: linear-gradient(90deg, #8a1e2e, #b32b31);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  color: #ffecec;
}

.age-banner .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 1.5rem;
}

.age-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffecec;
  color: #8a1e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 11, 16, 0.96), rgba(5, 11, 16, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 15px;
  gap: 1.5rem;
}
.background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  opacity: 0.19;
}
.game-image {
  background: #b6abe596;
  width: 100%;
  max-width: 200px;
  padding: 5px 10px;
  margin: 0 0 15px;
  border-radius: 15px;
  border: 1px solid #fff2;
}
.game-image img {
  display: block;
  width: 100%;
  max-width: 200px;
}
section, section .container {
  position: relative;
}
.hero-bg {
  background-image: url("../img/hero-bg.jpg");
}
.games-bg {
  background-image: url("../img/background.jpg");
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #031018;
}
.brand-mark img {
  width: 100%;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.main-nav .nav-cta {
  border-color: rgba(52, 196, 255, 0.45);
  background: radial-gradient(circle at top left, rgba(52, 196, 255, 0.2), rgba(52, 196, 255, 0.05));
  color: var(--accent-strong);
  font-weight: 500;
}

.main-nav .nav-current {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Hero */

.hero {
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.hero-panel {
  width: 100%;
  max-width: 600px;
  margin: auto;
}
.hero-text {
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.hero-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
  background: radial-gradient(circle at 30% 0, #ffffff, #34c4ff);
  box-shadow: 0 0 10px rgba(52, 196, 255, 0.7);
}

.hero-panel {
  background: radial-gradient(circle at top, rgba(52, 196, 255, 0.18), rgba(13, 23, 34, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.hero-panel ol {
  padding-left: 1.1rem;
  margin: 0 0 0.9rem;
}

.hero-panel li {
  margin-bottom: 0.35rem;
}

.hero-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Game cards */

.game-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.7rem;
}

.game-card h3 {
  font-size: 1.05rem;
}

.game-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-soft);
  padding-left: 0.6rem;
}

.game-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
}

.game-card ul {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.game-card li {
  margin-bottom: 0.25rem;
}

/* Support box */

.support-box {
  margin-top: 2rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02));
}

.support-box h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.support-box p {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.support-note {
  font-size: 0.86rem;
  color: #ffb3b3;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 1.1rem;
}

.faq-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(4, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Forms */

.narrow {
  max-width: 640px;
  margin: 0 auto;
}

.form-card {
  margin-top: 1.6rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 10, 17, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(52, 196, 255, 0.3);
}

.form-row {
  margin-bottom: 1rem;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkbox input {
  margin-top: 0.12rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  background: radial-gradient(circle at 20% 0, #e5f7ff, #34c4ff, #1f88ff);
  color: #03131f;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.form-note {
  margin-top: 0.7rem;
  margin-bottom: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Info callout */

.info-callout {
  margin-top: 2rem;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(8, 23, 35, 0.9);
  border: 1px solid rgba(52, 196, 255, 0.35);
}

.info-callout h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Typography */

h1, h2 {
  letter-spacing: 0.01em;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #040a0f;
  padding: 2.4rem 0 2rem;
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 0.6fr) minmax(0, 1.3fr);
  gap: 1.7rem;
}

.footer-brand {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.footer-text {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.footer-meta {
  margin: 0;
  color: rgba(150, 160, 178, 0.95);
  font-size: 0.8rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* ===== Legal pages layout (shared container) ===== */

.legal-shell {
  width: 100%;
  padding: 48px 16px;
  background: radial-gradient(circle at top left, #122948 0, transparent 55%),
  radial-gradient(circle at bottom right, #0a1a32 0, transparent 55%),
  #020817;
  color: #f5f7fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-container {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(5, 12, 24, 0.96);
  border-radius: 18px;
  padding: 32px 24px 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

/* Basic typography */

.legal-title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.legal-subtitle {
  margin: 0 0 24px;
  font-size: 0.98rem;
  color: #9ca9bc;
}

.legal-updated {
  margin: 0 0 24px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(156, 169, 188, 0.9);
}

.legal-section-title {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.legal-container p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #ccd5e4;
}

.legal-container ul {
  margin: 0 0 16px 20px;
  padding: 0;
  font-size: 0.94rem;
  color: #ccd5e4;
}

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

/* Small helper blocks */

.legal-note {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 38, 72, 0.85);
  border: 1px solid rgba(61, 210, 255, 0.25);
  font-size: 0.88rem;
  color: #d2e6ff;
}

.footer-main {
  border-top: #fff2 1px solid;
  text-align: center;
  color: var(--text-muted)
}
.trust-logo {
  text-align: center;
}
.logo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  justify-content: center;
}
.age18 {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 3px solid #f00;
  user-select: none;
}
.logo-trust a {
  height: 50px;
  padding: 7px;
  border-radius: 10px;
  display: block;
  margin: 0;
  background: rgba(123, 86, 161, 0.35);
}
.logo-trust img {
  height: 100%;
}

/* Responsive */

@media (max-width: 640px) {
  .legal-shell {
    padding: 32px 12px;
  }
  .legal-container {
    padding: 24px 16px 28px;
  }
  .legal-title {
    font-size: 1.4rem;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .age-banner .container {
    flex-direction: row;
    padding: 0 15px
  }

  .age-banner p {
    font-size: 0.8rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .game-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 2.6rem 0;
  }

  .hero {
    padding-top: 2.3rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- Overrides: more saturated background and mobile navigation --- */

:root {
  --bg-body: #020817;
  --bg-alt: #031226;
  --bg-card: #071a35;
  --accent: #3dd2ff;
  --accent-soft: rgba(61, 210, 255, 0.22);
  --accent-strong: #25b9ff;
}

/* Stronger, more saturated page background */
body {
  background:
    radial-gradient(circle at top left, #163b7a 0, transparent 52%),
    radial-gradient(circle at bottom right, #0b2e5f 0, transparent 55%),
    #020817;
}

/* Mobile nav toggle (hamburger) */
.header-inner {
  position: relative;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(3, 14, 25, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.18s ease, opacity 0.18s ease, width 0.18s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Collapse nav on smaller screens */
@media (max-width: 800px) {
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
  }
  .nav-toggle {
    display: flex;
    flex-wrap: nowrap;
    width: 40px;
    flex-direction: column;
    border-radius: 5px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.7rem 0.9rem 0.9rem;
    background: rgba(2, 8, 23, 0.98);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
    flex-direction: column;
    gap: 0.25rem;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav a {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
  }

  .main-nav.nav-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Ensure header stays in row layout on very small screens for burger menu */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
  }
}
