/* Cookie notice */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.5rem;
  padding: 1rem max(20px, env(safe-area-inset-left));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(12, 27, 51, .35);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text {
  margin: 0;
  max-width: 62ch;
  font-size: .95rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--gold-light);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cookie-banner .btn-outline-dark {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

.cookie-banner .btn-outline-dark:hover,
.cookie-banner .btn-outline-dark:focus-visible {
  background: var(--white);
  color: var(--navy);
}

/* Keep the floating buttons clear of the notice while it is showing */
html.cookie-open .a11y-btn,
html.cookie-open .to-top {
  bottom: calc(var(--cookie-h, 120px) + 12px);
}

html.cookie-open .a11y-btn.is-right {
  bottom: calc(var(--cookie-h, 120px) + 74px);
}

@media (max-width: 560px) {
  .cookie-banner { justify-content: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 0; }
}

/* Footer legal links */
.footer-legal {
  margin-bottom: .4rem;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--gold-light);
}

.policy ul {
  padding-left: 1.25rem;
}

.policy li {
  margin-bottom: .5rem;
}
