:root {
  --bg: #020617;
  --surface: #0F172A;
  --text: #ECFEFF;
  --muted: #67E8F9;
  --primary: #14B8A6;
  --secondary: #CBD5E1;
  --accent: #22C55E;
  --border: rgba(236, 254, 255, 0.12);
  --font: 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;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  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;
  transition: color 0.2s ease;
}

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

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

.disclosure-banner {
  display: flex;
  justify-content: center;
  padding: 8px 16px;
}

.disclosure-pill {
  max-width: fit-content;
  margin: 8px auto;
  padding: 6px 24px;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  position: relative;
  display: block;
  padding: 8px 4px 12px;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  transition: color 0.2s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--text);
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 310;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  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(2, 6, 23, 0.88);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--surface);
  z-index: 300;
  padding: 72px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-drawer a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  border-left: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-drawer a:hover,
.nav-drawer a.is-active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(20, 184, 166, 0.06);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  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: 28px;
}

.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.85;
  transition: opacity 0.2s;
}

.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 {
  font-size: 13px;
  color: var(--muted);
}

.footer-disclosure {
  font-size: 11px;
  color: rgba(103, 232, 249, 0.55);
  line-height: 1.55;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--secondary);
  opacity: 0.6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.92);
}

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

.modal-box {
  max-width: 440px;
  width: 100%;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.15);
}

.modal-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 12px;
}

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

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text);
}

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

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

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

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

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

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

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 8px;
}

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

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

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  margin: 32px 0 12px;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 15px;
}

.legal-content ul {
  margin: 12px 0 16px 24px;
  color: var(--secondary);
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 15px;
}

.legal-content a {
  text-decoration: underline;
}

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

.contact-info h2 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

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

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

.form-success {
  display: none;
  padding: 24px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
}

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

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

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

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

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

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

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

.redirect-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 12px;
}

.redirect-meta {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 10px;
}

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

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  font-style: italic;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

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

  .nav-drawer {
    display: block;
  }

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