.privacy-notice[hidden] { display: none; }
.privacy-notice {
  position: fixed;
  z-index: 10000;
  inset: auto 20px max(20px, env(safe-area-inset-bottom));
  max-width: 1120px;
  margin-inline: auto;
  padding: 24px 48px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  color: #15191e;
  background: #fff;
  border: 1px solid #c5cbd3;
  border-top: 3px solid #2047f4;
  border-radius: 4px;
  box-shadow: 0 8px 40px #15191e33;
  font-family: "Inter Tight", Arial, sans-serif;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.privacy-notice h2 { margin: 0 0 8px; font: 700 21px/1.2 "Inter Tight", Arial, sans-serif; letter-spacing: -.02em; }
.privacy-notice p { margin: 0; font-size: 14px; line-height: 1.55; }
.privacy-notice p + p { margin-top: 8px; }
.privacy-notice a { color: #193aca; text-decoration: underline; text-underline-offset: 3px; }
.privacy-notice-actions { display: grid; gap: 10px; }
.privacy-notice-actions button {
  min-height: 48px;
  padding: 12px 16px;
  color: #15191e;
  background: #f3f5f7;
  border: 1px solid #626c79;
  border-radius: 3px;
  font: 600 14px/1.35 "Inter Tight", Arial, sans-serif;
  cursor: pointer;
}
.privacy-notice-actions button:hover { background: #e7ebf3; border-color: #2047f4; }
.privacy-notice-actions button[aria-pressed="true"] { border-color: #2047f4; box-shadow: inset 0 0 0 1px #2047f4; }
.privacy-notice-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #15191e;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.privacy-notice-close[hidden] { display: none; }
.privacy-notice :focus-visible, .site-footer .privacy-settings:focus-visible { outline: 3px solid #2047f4; outline-offset: 3px; }
.site-footer .privacy-settings {
  display: block;
  width: fit-content;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-footer .privacy-settings:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .privacy-notice { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 20px 24px; grid-template-columns: 1fr; gap: 16px; max-height: calc(100dvh - 24px); }
  .privacy-notice h2 { padding-right: 20px; }
  .privacy-notice-actions { grid-template-columns: 1fr; }
}
