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

:root {
  --bg: #000000;
  --surface: #0D0D0D;
  --text: #F2F2F2;
  --muted: #666666;
  --primary: #CCFF00;
  --secondary: #1A1A1A;
  --accent: #32CD32;
  --border: rgba(204, 255, 0, 0.15);
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

main {
  flex: 1;
}

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

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

a:hover {
  opacity: 0.85;
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  color: #1a1a1a;
  line-height: 1.5;
  background-color: #f0f0eb;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(0, 0, 0, 0.03) 6px,
    rgba(0, 0, 0, 0.03) 12px
  );
}

.disclosure-banner p {
  margin: 0;
}

.navbar-wrap {
  padding: 16px 16px 0;
  position: sticky;
  top: 16px;
  z-index: 1000;
}

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

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

.page-hero {
  padding: 48px 24px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  margin-bottom: 8px;
}

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

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

.legal-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 16px;
  color: var(--text);
}

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

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

.legal-content p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0 0 14px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.legal-content strong {
  color: var(--text);
}

.contact-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.contact-intro {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-email-line {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.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: var(--serif);
  font-size: 1rem;
}

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

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

.field-error {
  display: none;
  color: #e94560;
  font-size: 0.82rem;
  margin-top: 6px;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) ~ .field-error {
  display: block;
}

.form-submit {
  background: var(--primary);
  color: #0a0a0a;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--serif);
}

.form-submit:hover {
  opacity: 0.9;
}

.contact-success {
  display: none;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.contact-success h2 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-success p {
  color: var(--muted);
  font-size: 0.95rem;
}

#contact-success:target ~ .contact-success {
  display: block;
}

#contact-success:target ~ .contact-form-wrap {
  display: none;
}

.error-page {
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.error-page h1 {
  font-size: 4rem;
  font-family: var(--mono);
  color: var(--primary);
  margin-bottom: 16px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.error-link {
  display: inline-block;
  background: var(--primary);
  color: #0a0a0a;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
}

.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: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links h3 {
  font-size: 0.75rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

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

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

.cookie-checkbox {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2000;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 640px;
  text-align: center;
}

.cookie-accept-label {
  display: inline-block;
  background: var(--primary);
  color: #0a0a0a;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--serif);
}

.cookie-checkbox:checked ~ .cookie-banner {
  transform: translateY(100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .navbar-wrap {
    padding: 0;
    top: 0;
  }

  .navbar {
    border-radius: 0;
    max-width: none;
    border-left: none;
    border-right: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
