/* Footer links to the legal pages and the cookie notice — loaded on every page. */

.footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0 0 18px;
  padding: 0;
}

.footer__legal-link {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__legal-link:hover,
.footer__legal-link:focus-visible {
  color: rgba(255, 255, 255, 0.95);
}

/* ── Cookie notice ─────────────────────────────────────────── */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 900; /* below the header (1000) and the mobile menu */
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(720px, calc(100% - 32px));
  padding: 20px 24px 20px 28px;
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-notice__text {
  flex: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.cookie-notice__text a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice__button {
  flex-shrink: 0;
  min-width: 112px;
  padding: 12px 28px;
  font-family: var(--font-cardo);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-white);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.cookie-notice__button:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cookie-notice {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: calc(100% - 24px);
    padding: 16px 18px 18px 20px;
  }

  .cookie-notice__text {
    font-size: 0.8rem;
  }

  .cookie-notice__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    transition: none;
  }
}
