*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #020024;
  --surface: #05054B;
  --text: #FFFFFF;
  --muted: #9191FF;
  --primary: #0000FF;
  --secondary: #00D4FF;
  --accent: #FF007F;
  --border: rgba(0, 212, 255, 0.2);
  --nav-bg: #020024;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --max-w: 1280px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 16px;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.disclosure-banner {
  width: 100%;
  background: #010018;
  color: #FFFFFF;
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header {
  position: static;
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.nav-desktop a {
  color: var(--text);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-desktop a:hover {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 0, 36, 0.85);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--nav-bg);
  z-index: 200;
  padding: 72px 0 32px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer a {
  display: block;
  color: var(--text);
  font-size: 16px;
  padding: 14px 24px;
  border-left: 3px solid var(--accent);
  margin-bottom: 2px;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-serif);
}

body.drawer-open {
  overflow: hidden;
}

.site-footer {
  background: var(--surface);
  padding: 56px 24px 40px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-badges a,
.footer-badges span {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-disclosure {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 0, 36, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  max-width: 460px;
  width: 100%;
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--text);
}

.modal-box p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 900;
  padding: 20px 24px;
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1 1 280px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-page {
  padding: 64px 24px 80px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: var(--text);
}

.legal-inner h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-inner h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.legal-inner p {
  margin-bottom: 14px;
  color: var(--muted);
}

.legal-inner ul {
  margin: 0 0 16px 1.4rem;
  color: var(--muted);
}

.legal-inner li {
  margin-bottom: 8px;
}

.contact-form-wrap {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 15px;
  margin-bottom: 18px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--accent);
  font-size: 13px;
  margin: -12px 0 14px;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(0, 0, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-success.visible {
  display: block;
}

.redirect-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.redirect-card {
  max-width: 480px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
}

.ad-flag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-card h1 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.redirect-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.redirect-meta {
  font-size: 12px;
}

.not-found-page {
  padding: 80px 24px;
  text-align: center;
}

.not-found-page h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.not-found-page p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .drawer-overlay,
  .mobile-drawer {
    display: block;
  }
}
