body.cookie-modal-open {
  overflow: hidden;
  touch-action: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

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

.cookie-modal__backdrop {
  grid-area: 1 / 1;
  place-self: stretch;
}

.cookie-modal__panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  max-width: 100%;
  box-sizing: border-box;
  max-height: min(calc(100dvh - 32px), 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cookie-modal__view[hidden] {
  display: none !important;
}

.cookie-modal__view:not([hidden]) {
  display: block;
}

.cookie-modal__view {
  padding-bottom: 0;
}

.bmn-cookie-prefs-link {
  cursor: pointer;
}

.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 1.25rem;
}

.cookie-modal__category {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.475rem;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.02);
}

.cookie-modal__category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cookie-modal__category-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #181c32;
}

.cookie-modal__category-desc {
  font-size: 0.8rem;
  color: #7e8299;
  margin-top: 4px;
  line-height: 1.45;
}

[data-bs-theme="dark"] .cookie-modal__category {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .cookie-modal__category-title {
  color: #ffffff;
}

[data-bs-theme="dark"] .cookie-modal__category-desc {
  color: rgba(235, 235, 245, 0.55);
}

.bmn-legal-page {
  font-size: 15px;
  line-height: 1.65;
  color: #3f4254;
}

.bmn-legal-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #181c32;
}

.bmn-legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: #181c32;
}

.bmn-legal-page p,
.bmn-legal-page ul {
  margin-bottom: 0.75rem;
}

.bmn-legal-page ul {
  padding-left: 1.25rem;
}

.bmn-legal-page .table {
  font-size: 14px;
}

.bmn-legal-meta {
  color: #7e8299;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .bmn-legal-page {
  color: rgba(235, 235, 245, 0.75);
}

[data-bs-theme="dark"] .bmn-legal-page h2,
[data-bs-theme="dark"] .bmn-legal-page h3 {
  color: #ffffff;
}

[data-bs-theme="dark"] .bmn-legal-meta {
  color: rgba(235, 235, 245, 0.5);
}
