/* Cookie-consent card + footer "Cookie settings" link.
   Shared by the Astro pages (site.css tokens) and the plain-HTML legal
   pages (styles.css tokens) — every color falls back through both token
   sets, so the card matches whichever stylesheet the page loaded. */
.consent {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  margin-left: auto;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--border, #1f2430);
  border-radius: 14px;
  background: var(--bg-raised, var(--bg-alt, #12141a));
  color: var(--text, #f4f6fb);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 0.875rem;
  line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.75rem; color: var(--muted, var(--text-muted, #8b93a7)); }
.consent p a { color: var(--text, #f4f6fb); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 0.5rem; }
/* Two buttons, one style: the choice must not be nudged by weight or color. */
.consent-btn {
  flex: 1 1 0;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border, #1f2430);
  border-radius: 10px;
  background: transparent;
  color: var(--text, #f4f6fb);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn:hover { background: var(--bg-inset, var(--bg, #0e1016)); border-color: var(--accent, #5b82ff); }
.consent-btn:focus-visible { outline: 2px solid var(--accent, #5b82ff); outline-offset: 2px; }
@media (max-width: 480px) {
  .consent { left: 12px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in 0.22s ease-out; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
/* Footer link that re-opens the card. Looks like the neighbouring text links. */
.consent-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-link:hover { color: var(--text, #f4f6fb); }
