.footer-policies {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 12px 0 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem;
}
.footer-policies a, .footer-policies button { min-height: 24px; display: inline-flex; align-items: center; }
.footer-policies a:hover, .footer-policies button:hover { text-decoration: underline; }
.footer-policies button, .cookie-links button {
  padding: 0; border: 0; color: inherit; background: none; font: inherit;
}
.cookie-banner {
  position: fixed; z-index: 7; inset: auto auto max(16px, env(safe-area-inset-bottom)) 16px;
  width: min(426px, calc(100% - 32px)); padding: 17px;
  border: 1px solid var(--line); border-top: 4px solid var(--brand);
  color: var(--text); background: #fff; box-shadow: 0 8px 24px #291a441a;
}
.cookie-banner h2, .cookie-dialog h2 { font: 600 1.25rem/1.2 var(--heading); }
.cookie-banner p, .cookie-dialog p { margin-top: 6px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.cookie-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.cookie-actions button {
  min-height: 40px; padding: 6px 7px; border: 1px solid var(--accent-line);
  background: var(--accent-wash); color: var(--text); font-size: .8125rem; font-weight: 680;
}
.cookie-actions button:hover { border-color: var(--brand); background: var(--accent-soft); }
.cookie-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--accent); font-size: .8125rem; }
.cookie-links a, .cookie-links button { min-height: 24px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.cookie-dialog {
  width: min(460px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 23px 19px 19px;
  border: 1px solid var(--line); color: var(--text); background: #fff;
}
.cookie-dialog::backdrop { background: #291a4480; }
.cookie-dialog h2 { margin-right: 34px; }
.cookie-close {
  position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; border: 0;
  background: var(--surface); font-size: 1.25rem; line-height: 1;
}
.cookie-item { display: flex; gap: 11px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-item strong { font-size: .875rem; }
.cookie-item span { flex: 0 0 auto; color: var(--accent); font-size: .75rem; font-weight: 670; }
.cookie-item input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--brand); }

@media (max-width: 420px) {
  .cookie-banner { left: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 13px; }
  .footer-policies { gap: 8px 16px; }
}
