:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --primary: #2563EB;
  --secondary: #16A34A;
  --accent: #F97316;
  --border: rgba(15, 23, 42, 0.12);
  --nav-bg: #0F172A;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.age-locked,
body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

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

.offer-logo img {
  max-width: none;
  height: 100%;
}

.disclosure-banner {
  width: 100%;
  background: #0F172A;
  padding: 8px 16px 8px 12px;
}

.disclosure-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.disclosure-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: #F8FAFC;
  line-height: 1;
}

.disclosure-text {
  font-size: 11px;
  line-height: 1.45;
  color: #CBD5E1;
  text-align: left;
}

.navbar {
  position: static;
  background: var(--nav-bg);
  width: 100%;
}

.navbar-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 44px;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 0;
}

.navbar-links {
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

.navbar-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.navbar-links a {
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.15s;
}

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

.nav-burger {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F8FAFC;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--nav-bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer ul {
  list-style: none;
  text-align: center;
}

.nav-drawer li {
  margin: 16px 0;
}

.nav-drawer a {
  color: #F8FAFC;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-footer {
  background: var(--nav-bg);
  color: #CBD5E1;
  padding: 48px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
  height: 32px;
  width: auto;
}

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

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.footer-badges a:hover img {
  opacity: 1;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 13px;
}

.footer-links a:hover {
  color: #F8FAFC;
}

.footer-legal {
  font-size: 11px;
  line-height: 1.65;
  color: #64748B;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 12px;
  color: #475569;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1D4ED8;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 15px;
  color: var(--muted);
}

.legal-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info a {
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success h2 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--muted);
}

.redirect-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.redirect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.ad-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-card h1 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.redirect-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.redirect-meta {
  font-size: 12px;
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-divider {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-overlay,
  .nav-drawer {
    display: flex;
  }

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

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
