:root {
  --bg-page: radial-gradient(circle at top left, #e0f2fe 0, #eff6ff 40%, #f9fafb 100%);
  --bg-hero: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 45%, #eef2ff 100%);
  --bg-how: linear-gradient(135deg, #fefce8 0, #ecfeff 45%, #eef2ff 100%);
  --bg-games: radial-gradient(circle at top, #f1f5f9 0, #f9fafb 45%, #eff6ff 100%);
  --bg-responsible: linear-gradient(135deg, #ecfdf5 0, #f0f9ff 60%, #fdf2ff 100%);
  --card-radius: 1.25rem;
  --card-border: 1px solid rgba(15, 23, 42, 0.06);
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --accent-blue: #2563eb;
  --accent-sky: #0ea5e9;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
}

/* Base layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

.page-main {
  min-height: 70vh;
}

/* Navbar */
header {
  background: linear-gradient(90deg, #0f172a, #1e293b);
}

.navbar {
  color: #e5e7eb;
}

.navbar .navbar-brand {
  color: #e5e7eb;
}

.navbar .navbar-brand span.text-primary {
  color: #38bdf8 !important;
}

.navbar .nav-link {
  color: #cbd5f5;
  font-size: 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffffff;
}

/* Hero */
#hero {
  background: var(--bg-hero);
}

#hero .lead {
  color: var(--text-muted);
}

/* Sections */
.section-title {
  letter-spacing: 0.03em;
}

/* Cards and panels */
.info-panel,
.step-card,
.game-card,
.responsible-card,
.auth-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

/* Subtle gradient accents for cards */
.game-card .game-card-body {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), #ffffff);
}

.step-card {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.09), #ffffff);
}

.responsible-card {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.09), #ffffff);
}

/* Section-specific backgrounds */
#how-it-works {
  background: var(--bg-how);
}

#games {
  background: var(--bg-games);
}

#responsible {
  background: var(--bg-responsible);
}

/* Game cards */
.game-card-body h3 {
  font-weight: 600;
}

/* FAQ styling */
.faq-item {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), #ffffff);
  padding: 0.75rem 1rem;
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "▾";
  float: right;
  font-size: 0.8rem;
  color: #64748b;
}

details[open] .faq-summary::after {
  content: "▴";
}

.faq-body {
  margin-top: 0.5rem;
}

/* Auth forms */
.auth-card .form-control,
.auth-card .form-select {
  font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  border-color: #1d4ed8;
}

.btn-outline-primary {
  border-color: #38bdf8;
  color: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #e0f2fe;
  color: #0f172a;
}

/* Helpers */
.text-secondary {
  color: var(--text-muted) !important;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #0f172a, #020617);
  color: #e5e7eb;
}

footer p {
  color: #cbd5f5 !important;
}
.nav-item {
  margin-top: auto;
  margin-bottom: auto;
}
.navbar-brand img {
  width: 32px;
  margin-right: 10px;
}
section, section .container {
  position: relative;
}
section .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('../img/background.jpg');
  opacity: 0.2;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
section .background.bg-hero {
  background: url('../img/hero.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.help-logo {
  background: #fff2;
  display: flex;
  align-content: center;
  padding: 5px 7px;
  border-radius: 5px;height: 100%;
}
.help-logo img {
  object-fit: contain;
  height: 40px;
}
.plus18 {
  height: 50px;
  width: 50px;
  background: #fff2;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: 3px solid #f00;
  text-align: center;
  align-content: center;
  border-radius: 50%;
}
.game-image {
  max-width: 200px;
  display: block;
  margin: auto;
}
#contact {
  background: var(--bg-games);
}
/* LEGAL PAGE STYLING — Play Online Canada */

.legal-shell {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 40px 42px 48px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  box-shadow:
          0 40px 100px rgba(15, 23, 42, 0.12),
          0 0 0 1px rgba(148, 163, 184, 0.25);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.legal-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.legal-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.legal-intro {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 26px;
}

.legal-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
  color: #0f172a;
}

.legal-shell ul {
  padding-left: 20px;
}

.legal-shell li {
  margin-bottom: 6px;
  color: #334155;
}

.legal-note {
  background: #f1f5f9;
  border-left: 4px solid #0284c7;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 24px 0;
  color: #334155;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .legal-shell {
    padding: 26px 22px 34px;
    border-radius: 20px;
    margin: 24px auto 40px;
  }
  .legal-title { font-size: 1.7rem; }
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .nav-item .btn {
    margin: 5px 0
  }
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-brand {
    font-size: 1rem;
  }

  .display-5 {
    font-size: 1.8rem;
  }

  header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
  }
}
