.privacy-modal {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  padding: var(--gutter);
  place-items: center;
  color: #202529;
  font-family: "Inter", sans-serif;
}

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

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(32, 37, 41, .72);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100svh - (var(--gutter) * 2));
  padding: clamp(30px, 4vw, 52px);
  overflow: auto;
  border-radius: 30px;
  background: #f3f3f2;
  box-shadow: 0 28px 90px rgba(16, 19, 22, .28);
}

.privacy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-modal__header p,
.privacy-modal__panel h2,
.privacy-modal__content p,
.privacy-modal__content h3 {
  margin: 0;
}

.privacy-modal__header p {
  color: #76777a;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.privacy-modal__close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #202529;
  color: #ffffff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.privacy-modal__close:hover,
.privacy-modal__close:focus-visible {
  background: #fad1d1;
  color: #202529;
  transform: rotate(6deg);
}

.privacy-modal__panel h2 {
  max-width: 590px;
  margin-top: clamp(28px, 4vw, 46px);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.12;
}

.privacy-modal__content {
  display: grid;
  max-width: 590px;
  gap: 12px;
  margin-top: 28px;
  color: #626568;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
}

.privacy-modal__content h3 {
  margin-top: 12px;
  color: #202529;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.privacy-modal__content a {
  color: #202529;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.privacy-modal__edition {
  color: #8a8c8e;
  font-size: 14px;
}

.privacy-modal__direct-link {
  margin: -4px 0 2px;
  font-size: 14px;
}

@media (max-width: 479px) {
  .privacy-modal {
      padding: 14px;
    }

  .privacy-modal__panel {
      max-height: calc(100svh - 28px);
      padding: 26px 22px 30px;
      border-radius: 24px;
    }

  .privacy-modal__panel h2 {
      margin-top: 28px;
      font-size: 32px;
    }

  .privacy-modal__content {
      margin-top: 22px;
      font-size: 16px;
    }
}
