:root {
  --bg: #F4EBD9;
  --surface: #EFE1C5;
  --text: #2C241D;
  --muted: #6B5E4F;
  --primary: #8D5B3E;
  --secondary: #4A3728;
  --accent: #C0522B;
  --border: rgba(44, 36, 29, 0.15);
  --nav-dark: #2a1f18;
  --nav-mid: #3d2e24;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(135deg, rgba(141, 91, 62, 0.06) 0%, transparent 50%),
    linear-gradient(225deg, rgba(192, 82, 43, 0.05) 0%, transparent 40%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

.disclosure {
  background: var(--nav-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--nav-dark) 0%, var(--nav-mid) 100%);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--surface);
}

.navbar__logo img {
  display: block;
}

.navbar__brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: expanded;
}

.navbar__links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 8px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-stretch: expanded;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}

.navbar__links a:hover::after {
  width: 100%;
  left: 0;
}

.navbar__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--surface);
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.footer {
  background: var(--secondary);
  color: var(--surface);
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--surface);
  margin-bottom: 16px;
}

.footer__brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: expanded;
}

.footer__compliance p {
  font-size: 0.85rem;
  color: rgba(239, 225, 197, 0.85);
  margin-bottom: 10px;
  line-height: 1.55;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}

.footer__badges a,
.footer__badges span {
  display: block;
}

.footer__badges img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer__badges a:hover img {
  opacity: 1;
}

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

.footer__links a {
  color: rgba(239, 225, 197, 0.8);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer__links a:hover {
  color: var(--surface);
  text-decoration: underline;
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(239, 225, 197, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  line-height: 1.6;
}

.footer__updated {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(239, 225, 197, 0.7);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 29, 0.75);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 2px solid var(--primary);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 4px 4px 0 var(--accent);
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--secondary);
  font-stretch: expanded;
}

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

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, filter 0.2s;
  font-family: inherit;
}

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

.btn--primary:hover {
  filter: invert(0.15);
}

.btn--secondary {
  background: transparent;
  color: var(--secondary);
}

.btn--secondary:hover {
  background: var(--border);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-dark);
  color: var(--surface);
  padding: 16px 24px;
  z-index: 150;
  display: none;
  border-top: 2px solid var(--accent);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
}

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

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--secondary);
  font-stretch: expanded;
}

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

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

.page-content p {
  margin-bottom: 14px;
  color: var(--text);
}

.page-content ul {
  margin: 0 0 16px 20px;
}

.page-content li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.contact-form .field-error {
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: -12px;
  margin-bottom: 12px;
  display: none;
}

.contact-form .field-error.visible {
  display: block;
}

.form-success {
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--primary);
  text-align: center;
}

.form-success h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.glitch-rebellion {
  position: relative;
}

.dead-pixel {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  opacity: 0.7;
  pointer-events: none;
}

.dead-pixel--1 { top: 12%; left: 8%; }
.dead-pixel--2 { top: 45%; right: 15%; }
.dead-pixel--3 { bottom: 20%; left: 22%; }

@media (max-width: 900px) {
  .navbar__burger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--nav-dark) 0%, var(--nav-mid) 100%);
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 4px;
    transition: right 0.35s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 0.95rem;
    padding: 12px 0;
  }

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