/* ==========================================================================
   Cookie consent banner, registration consent and footer links
   ========================================================================== */

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

/* ---------------------------------------------------------- cookie banner */

.cookie-consent {
  position: fixed;
  z-index: 1500;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: cookie-consent-in 160ms ease-out;
}

.cookie-consent.is-leaving {
  opacity: 0;
  transition: opacity 120ms ease-in;
}

.cookie-consent-panel {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(11, 19, 36, 0.98);
  color: var(--text);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px);
}

.cookie-consent-copy {
  flex: 1 1 340px;
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 4px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.cookie-consent-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-consent-text a,
.footer-links a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text a:hover,
.footer-links a:hover {
  color: #67e8f9;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-consent-btn {
  min-height: 38px;
  white-space: nowrap;
}

.cookie-consent :focus-visible,
.terms-consent :focus-visible,
.footer-links :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@keyframes cookie-consent-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Above the fixed mobile nav / toasts on small screens. */
@media (max-width: 700px) {
  .cookie-consent {
    bottom: calc(68px + env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
  }

  .cookie-consent-panel {
    padding: 14px;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-btn {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent.is-leaving {
    animation: none;
    transition: none;
  }
}

/* ------------------------------------------------- registration consent */

.terms-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
}

.terms-consent input[type='checkbox'] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.terms-consent label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.terms-consent label a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-consent label a:hover {
  color: #67e8f9;
}

/* --------------------------------------------------------- footer links */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: #67e8f9;
}
