.privacy-modal[hidden] {
  display: none !important;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 35, 0.58);
}

.privacy-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(9, 20, 35, 0.32);
  overflow: hidden;
}

.privacy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.privacy-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b3a5a;
}

.privacy-modal__close {
  appearance: none;
  border: 1px solid #c8d7e7;
  background: #f7fbff;
  color: #0b3a5a;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.privacy-modal__body {
  padding: 0 18px 18px;
  min-height: 0;
}

.privacy-modal__content {
  width: 100%;
  height: 100%;
  overflow: auto;
  border: 1px solid #d8e4ef;
  border-radius: 18px;
  background: #fff;
}

.policy-shell.policy-shell--modal {
  padding: 20px 22px 28px;
  max-width: none;
  box-shadow: none;
}

.policy-shell--modal h1 {
  margin-top: 0;
  font-size: 1.15rem;
}

.policy-shell--modal .meta {
  margin-top: 0.25rem;
}

body.privacy-modal-open {
  overflow: hidden;
}
