/* Legal-links row appended to every page's footer (accessibility statement,
   privacy policy, terms of use, contact, cookie preferences). Standalone so
   pages with their own inline styles can share it; colors assume the dark
   footer background (--near-black) used site-wide. */
.footer-legal {
  flex-basis: 100%;
  width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  list-style: none; margin: 8px 0 0; padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 13px; line-height: 1.5;
}
.footer-legal a,
.footer-legal button {
  color: #C9CDCD; text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 4px 0; font: inherit; cursor: pointer;
}
.footer-legal a:hover,
.footer-legal button:hover { color: #8FD3D3; }
.footer-legal a:focus-visible,
.footer-legal button:focus-visible { outline: 3px solid #8FD3D3; outline-offset: 2px; border-radius: 2px; }
.footer-legal .footer-legal-copy { color: #B8BCBC; margin-inline-start: auto; }
/* Footers that are flex rows need to wrap so the legal row sits below. */
footer:has(> .footer-legal) { flex-wrap: wrap; }
@media (max-width: 768px) {
  .footer-legal { justify-content: center; }
  .footer-legal .footer-legal-copy { margin-inline-start: 0; }
}

/* Light-footer variant: links take the footer's own text colour. */
.footer-legal--inherit { border-top-color: rgba(127, 127, 127, 0.3); }
.footer-legal--inherit a,
.footer-legal--inherit button,
.footer-legal--inherit .footer-legal-copy { color: inherit; }
.footer-legal--inherit a:hover,
.footer-legal--inherit button:hover { color: inherit; text-decoration-thickness: 2px; }
.footer-legal--inherit a:focus-visible,
.footer-legal--inherit button:focus-visible { outline-color: currentColor; }
