.cookie-consent, .privacy-policy {
  background: var(--refined-surface);
  color: var(--refined-ink);
  border: 1px solid var(--refined-line);
  border-radius: 14px;
  font: 400 14px/1.6 var(--body-font, system-ui);
}
.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset-inline-start: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(410px, calc(100vw - 36px));
  padding: 16px;
  box-shadow: 0 10px 36px #0003;
}
.cookie-consent p { margin: 0 0 3px; }
.cookie-consent a { color: var(--refined-emphasis); text-decoration: underline; }
.cookie-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.cookie-actions button, .privacy-policy > button {
  border: 1px solid var(--refined-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 6px 12px;
  cursor: pointer;
}
.cookie-actions .primary {
  background: var(--refined-accent);
  color: var(--refined-on-accent);
  border-color: transparent;
}
.privacy-policy { width: min(650px, calc(100vw - 32px)); max-height: 85vh; padding: 24px; }
.privacy-policy::backdrop { background: #0007; }
.privacy-policy h2 { font-size: 24px; margin: 0 0 16px; }
.privacy-policy h3 { font-size: 16px; margin: 12px 0 3px; }
.privacy-policy p { margin: 0 0 10px; }
.privacy-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font: 400 13px/1.5 var(--body-font, system-ui);
}
footer:has(> .privacy-footer-links) { text-align: center; padding: 16px; }
.privacy-footer-links a, .privacy-footer-links button { color: inherit; }
.privacy-footer-links button { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.privacy-footer-links :is(a, button):hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .cookie-consent:not([hidden]) { animation: cookie-slide-in 300ms ease-out both; }
}
@keyframes cookie-slide-in {
  from { transform: translateX(calc(-100% - 32px)); opacity: 0; }
}
