.privacy-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(900px, calc(100vw - 32px));
  height: min(800px, 88dvh);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.privacy-modal::backdrop {
  background: rgba(12, 15, 20, .64);
  backdrop-filter: blur(3px);
}

.privacy-modal__header {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0c0f14;
  border-bottom: 1px solid #e6e8ec;
  font: 600 14px/1.4 Inter, system-ui, sans-serif;
}

.privacy-modal__header h2 {
  margin: 0;
  color: inherit;
  font: inherit;
}

.privacy-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4f5f7;
  color: #0c0f14;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal__close:hover {
  background: #e6e8ec;
}

.privacy-modal__content {
  height: calc(100% - 54px);
  overflow: auto;
  padding: clamp(20px, 4vw, 36px);
  color: #3a414d;
  background: #fff;
  font: 400 15px/1.7 Inter, system-ui, sans-serif;
}

.privacy-modal__content h1,
.privacy-modal__content h2,
.privacy-modal__content h3 {
  color: #0c0f14;
  line-height: 1.2;
}

.privacy-modal__content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.privacy-modal__content h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.privacy-modal__content p,
.privacy-modal__content ul {
  margin: 10px 0;
}

.privacy-modal__content li + li {
  margin-top: 6px;
}

.privacy-modal__content a {
  color: #8f0f1c;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .privacy-modal {
    width: calc(100vw - 20px);
    height: 90dvh;
    border-radius: 12px;
  }
}
