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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}

main {
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

input[type="email"] {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  width: 280px;
  outline: none;
}

input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(100, 100, 255, 0.5);
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: #6c63ff;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #5a52d5;
}

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#confirmation {
  color: #a5f3a5;
  margin-top: 1.5rem;
}

#error-msg {
  color: #f87171;
  margin-top: 1.5rem;
}

.consent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.consent label {
  font-size: 0.85rem;
  color: #aaa;
}

.consent a {
  color: #9b93ff;
  text-decoration: underline;
}

.consent a:hover {
  color: #c4bfff;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
}

.cookie-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.5;
  min-width: 200px;
  margin-bottom: 0;
}

.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}

.cookie-btn-primary {
  background: #6c63ff;
  color: #fff;
}

.cookie-btn-primary:hover { background: #5a52d5; }

.cookie-btn-secondary {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
}

.cookie-btn-secondary:hover { background: #e5e5e5; }

/* LEGAL PAGE */
.legal {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: left;
}

.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}

.legal .updated {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

.legal p, .legal li {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal a { color: #9b93ff; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #9b93ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

.terms-link {
  margin-top: 2rem;
  font-size: 0.75rem;
}

.terms-link a {
  color: #666;
  text-decoration: underline;
}

.terms-link a:hover { color: #9b93ff; }
