.legal-footer__bottom {
  grid-template-columns: auto minmax(0, 1fr);
}

.legal-footer__promotion-link {
  grid-column: 1 / -1;
  align-self: start;
  justify-self: center;
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font: 600 12px/1.6 Montserrat, sans-serif;
  text-decoration-color: rgba(207, 20, 24, .8);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.legal-footer__promotion-link:is(:hover, :focus-visible) {
  color: #fff;
  outline: none;
  text-decoration-color: #fff;
}

.developer-contact-popup[hidden] {
  display: none !important;
}

.developer-contact-popup {
  position: fixed;
  z-index: 260;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.developer-contact-popup.is-open {
  opacity: 1;
}

.developer-contact-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(16, 16, 18, .72);
  backdrop-filter: blur(8px);
  cursor: default;
}

.developer-contact-popup__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 38px;
  overflow: auto;
  border: 1px solid #e2e2e5;
  border-top: 4px solid var(--color-primary, #cf1418);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(207, 20, 24, .1), transparent 38%),
    #fff;
  color: var(--color-ink, #19191d);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .32);
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.developer-contact-popup.is-open .developer-contact-popup__dialog {
  opacity: 1;
  transform: none;
}

.developer-contact-popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #dddde1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #19191d;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.developer-contact-popup__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.developer-contact-popup__close:is(:hover, :focus-visible) {
  border-color: var(--color-primary, #cf1418);
  background: var(--color-primary, #cf1418);
  color: #fff;
  outline: none;
}

.developer-contact-popup__eyebrow {
  display: block;
  padding-right: 48px;
  color: var(--color-primary, #cf1418);
  font: 700 12px/1.3 Montserrat, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.developer-contact-popup h2 {
  max-width: 390px;
  margin: 12px 0 0;
  color: var(--color-ink, #19191d);
  font: 400 clamp(28px, 4vw, 38px)/1.05 "Russo One", sans-serif;
  text-transform: uppercase;
}

.developer-contact-popup__dialog > p {
  margin: 16px 0 0;
  color: #666970;
  font: 400 14px/1.55 Inter, sans-serif;
}

.developer-contact-popup__contacts {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.developer-contact-popup__contacts > a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 11px 14px;
  border: 1px solid #e2e2e5;
  border-radius: 8px;
  background: #f7f7f8;
  color: #19191d;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.developer-contact-popup__contacts > a:is(:hover, :focus-visible) {
  border-color: rgba(207, 20, 24, .55);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.developer-contact-popup__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-primary, #cf1418);
  color: #fff;
}

.developer-contact-popup__icon svg,
.developer-contact-popup__arrow {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.developer-contact-popup__contacts span:not(.developer-contact-popup__icon) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.developer-contact-popup__contacts small {
  color: #777980;
  font: 600 12px/1.2 Inter, sans-serif;
}

.developer-contact-popup__contacts strong {
  overflow-wrap: anywhere;
  font: 700 15px/1.3 Montserrat, sans-serif;
}

.developer-contact-popup__arrow {
  width: 19px;
  height: 19px;
  color: #8b8d93;
}

body.developer-contact-popup-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .legal-footer__bottom {
    grid-template-columns: 1fr;
  }

  .legal-footer__promotion-link {
    grid-column: auto;
    justify-self: center;
    margin-top: 4px;
  }

  .developer-contact-popup {
    align-items: end;
    padding: 10px;
  }

  .developer-contact-popup__dialog {
    width: 100%;
    padding: 30px 20px 20px;
    border-radius: 16px;
  }

  .developer-contact-popup h2 {
    padding-right: 32px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .developer-contact-popup,
  .developer-contact-popup__dialog,
  .developer-contact-popup__contacts > a {
    transition: none;
  }
}
