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

:root {
  --bg: #1A1A1A;
  --surface: #242424;
  --text: #E2E2E2;
  --muted: #888888;
  --primary: #B45309;
  --secondary: #78350F;
  --accent: #D97706;
  --border: rgba(180, 83, 9, 0.2);
  --nav-bg: #1A1A1A;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1280px;
  --nav-h: 60px;
}

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

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

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.hidden {
  display: none !important;
}

.disclosure-banner {
  width: 100%;
  background: #F5F5F0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}

.disclosure-banner .disclosure-label {
  background: #FDE047;
  color: #1A1A1A;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--nav-bg);
  height: var(--nav-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  order: 1;
}

.logo-link {
  order: 2;
  flex-shrink: 0;
}

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

.nav-desktop a {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus {
  color: var(--accent);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus::after {
  transform: translateX(-50%) scale(1);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  order: 3;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: var(--surface);
  z-index: 960;
  padding: 72px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid var(--border);
}

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

.mobile-drawer a {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

body.drawer-open {
  overflow: hidden;
}

.site-footer {
  background: var(--surface);
  color: var(--muted);
  padding: 48px 20px 32px;
  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;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text);
  font-size: 13px;
}

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

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

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.85;
}

.footer-se-disclosure {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
}

.modal-box h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--text);
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

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

.btn-primary {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

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

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

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
}

.page-hero p {
  color: var(--muted);
  margin-top: 8px;
}

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

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 24px;
  color: var(--text);
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

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

.contact-form-wrap {
  max-width: 560px;
  margin-top: 32px;
}

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

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

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

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

.form-error {
  color: #EF4444;
  font-size: 13px;
  margin-top: 6px;
}

.form-error.hidden {
  display: none;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(180, 83, 9, 0.15);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

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

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

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

.redirect-card h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 20px 0 12px;
}

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

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

.ad-flag {
  display: inline-block;
  background: var(--accent);
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
}

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

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

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

.error-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 6rem);
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  margin-bottom: 16px;
}

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

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

  .burger-btn {
    display: flex;
  }

  .drawer-overlay {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo-link {
    order: 1;
  }

  .burger-btn {
    order: 2;
    margin-left: auto;
  }
}
