.mh-privacy {
  --mh-ink: #211821;
  --mh-muted: #584a59;
  --mh-brand: #35002f;
  color: var(--mh-ink);
  font: 400 15px/1.55 Arial, sans-serif;
  max-width: 780px;
  margin: 32px auto;
  padding: 0 20px;
  text-align: left;
}
.mh-privacy *, .mh-privacy *::before, .mh-privacy *::after { box-sizing: border-box; }
[data-mh-privacy-root] { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.mh-privacy [hidden] { display: none !important; }
.mh-privacy button { font: inherit; }
.mh-privacy .mh-privacy-launcher {
  position: fixed;
  z-index: 90;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  appearance: none;
  min-height: 32px;
  max-width: calc(100vw - 32px);
  padding: 6px 10px;
  border: 1px solid #cbbacd;
  border-radius: 6px;
  background: #f7f3f8;
  color: var(--mh-brand);
  box-shadow: 0 3px 16px #19031926;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .mh-privacy .mh-privacy-launcher:hover { background: #eee5f0; border-color: var(--mh-brand); }
}
@media print { .mh-privacy .mh-privacy-launcher { display: none; } }
.mh-privacy .mh-privacy-open {
  position: relative;
  appearance: none;
  border: 0;
  background: #f7f3f8;
  color: var(--mh-brand);
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.mh-privacy-panel {
  position: fixed;
  inset: 0;
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 24px;
  background: #f7f3f8;
  color: var(--mh-ink);
  border: 1px solid #cbbacd;
  border-radius: 12px;
  box-shadow: 0 16px 64px #19031940;
}
.mh-privacy-panel:not([open]) { display: none; }
.mh-privacy-panel::backdrop { background: #19031999; }
.mh-privacy-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mh-privacy-panel .mh-privacy-close { position: relative; min-height: 32px; padding: 6px 8px; color: var(--mh-brand); background: #fff; border: 1px solid var(--mh-brand); border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1.4; font-weight: 600; }
/* Keep a generous hit area around the visually compact controls. */
.mh-privacy-launcher::after, .mh-privacy-open::after, .mh-privacy-close::after { content: ""; position: absolute; inset: -6px; }
.mh-privacy-panel h2 { color: var(--mh-brand); font: 600 22px/1.25 Arial, sans-serif; letter-spacing: -.02em; margin: 0 0 14px; }
.mh-privacy-panel p { color: var(--mh-ink); font: inherit; margin: 0 0 12px; max-width: 70ch; }
.mh-privacy-panel a { color: var(--mh-brand); text-decoration: underline; text-underline-offset: 3px; }
.mh-privacy-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.mh-privacy-actions button { appearance: none; border: 1px solid var(--mh-brand); border-radius: 6px; padding: 11px 15px; min-height: 44px; cursor: pointer; color: var(--mh-brand); background: #fff; font-weight: 600; }
.mh-privacy-actions button:hover { background: #eee5f0; }
.mh-privacy-actions button:disabled { opacity: .65; cursor: default; }
.mh-privacy :focus-visible { outline: 3px solid #6e0a62; outline-offset: 4px; }
.mh-privacy-panel .mh-privacy-note { margin: 16px 0 0; color: var(--mh-muted); font-size: 14px; }
.mh-privacy .mh-privacy-feedback { position: fixed; z-index: 91; left: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100vw - 32px)); margin: 0; padding: 14px 16px; border: 1px solid #cbbacd; border-radius: 8px; color: var(--mh-ink); background: #f7f3f8; box-shadow: 0 3px 16px #19031926; }
@media (max-width: 480px) {
  .mh-privacy { padding: 0 12px; }
  .mh-privacy .mh-privacy-launcher { left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .mh-privacy-panel { padding: 18px; }
  .mh-privacy-actions { grid-template-columns: 1fr; }
  .mh-privacy-actions button { width: 100%; }
}
