.cookie-consent[hidden] { display: none; }

.cookie-consent {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  width: min(720px, calc(100% - 1.5rem));
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  background:
    linear-gradient(135deg, var(--tint-purple-10), transparent 42%),
    var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(-50%);
  animation: cookie-consent-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}

.cookie-consent__kicker {
  margin: 0 0 0.35rem;
  color: var(--color-teal);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-consent__title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.cookie-consent__copy {
  margin: 0.7rem 0 0;
  color: var(--color-text-60);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.cookie-consent__copy a { color: var(--color-teal); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.cookie-consent__actions .btn-primary,
.cookie-consent__actions .btn-ghost { min-height: 44px; padding: 0.65rem 1rem; font-size: var(--text-xs); }

.foot__cookie-link,
.quiz-cookie-link {
  width: fit-content;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.foot__cookie-link {
  color: var(--color-text-60);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
}


.foot__cookie-link:hover,
.quiz-cookie-link:hover { color: var(--color-teal); }

@keyframes cookie-consent-in {
  from { opacity: 0; transform: translate(-50%, 22px) scale(.98); }
}

@media (max-width: 560px) {
  .cookie-consent { bottom: 0.5rem; width: calc(100% - 1rem); border-radius: var(--radius-lg); }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-consent__actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: none; }
}
