/* Scoped consent controls use the established warm graphite and ivory system. */
.privacy-consent[hidden] { display: none !important; }
.privacy-consent {
  box-sizing: border-box;
  position: fixed;
  z-index: 10000;
  inset-inline-end: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: var(--ink-2, var(--surface, #1a1b1d));
  color: var(--bone, #f4efe7);
  border: 1px solid var(--line, rgba(244, 239, 231, .18));
  font-family: Onest, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
  scrollbar-color: #69635c #1a1b1d;
  color-scheme: dark;
}
.privacy-consent *, .privacy-consent *::before, .privacy-consent *::after { box-sizing: border-box; }
.privacy-consent-heading { display: flex; align-items: flex-start; gap: 16px; }
.privacy-consent h2 {
  margin: 0;
  padding-top: 5px;
  flex: 1;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--bone, #f4efe7);
  text-wrap: balance;
}
.privacy-consent p { margin: 16px 0 0; color: var(--bone-dim, var(--dim, #bdb8af)); font-size: 16px; line-height: 1.55; }
.privacy-consent button, .privacy-consent a {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.privacy-consent-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone, #f4efe7);
  cursor: pointer;
}
.privacy-consent-close:hover { background: rgba(244, 239, 231, .08); }
.privacy-consent p.privacy-consent-current { color: var(--bone, #f4efe7); font-size: 14px; }
.privacy-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.privacy-consent-actions button {
  min-height: 48px;
  padding: 12px;
  border: 1px solid #79736c;
  border-radius: 0;
  background: #29282a;
  color: var(--bone, #f4efe7);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.privacy-consent-actions button:hover { background: #343235; border-color: var(--bone-dim, #bdb8af); }
.privacy-consent p.privacy-consent-note { font-size: 14px; line-height: 1.55; }
.privacy-consent-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; }
.privacy-consent-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bone, #f4efe7);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.privacy-consent button:focus-visible, .privacy-consent a:focus-visible, .privacy-consent h2:focus-visible {
  outline: 2px solid var(--ember, #f17860);
  outline-offset: 3px;
}
.privacy-consent-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .privacy-consent {
    inset-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 20px;
  }
  .privacy-consent-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-consent, .privacy-consent * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .privacy-consent { border-color: CanvasText; }
  .privacy-consent-actions button { border-color: ButtonText; }
}
