.site-footer {
  min-height: 78px;
  padding: 16px 3%;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  border-top: .5px solid rgba(91, 72, 98, .08);
  background: #fcf9fc;
  color: #55475a;
  font: 500 11px 'Syne', Arial, sans-serif;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-footer .footer-brand img {
  display: block;
  width: 104px;
  height: 34px;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: left center;
}

.site-footer .legal-links,
.site-footer .footer-socials {
  display: flex;
  align-items: center;
}

.site-footer .legal-links {
  justify-content: center;
  gap: 22px;
}

.site-footer .footer-socials {
  justify-content: flex-end;
  gap: 18px;
}

.site-footer .legal-links button,
.site-footer .footer-socials a {
  color: inherit;
  font: inherit;
  white-space: nowrap;
  transition: opacity .2s ease;
}

.site-footer .legal-links button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.site-footer .footer-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-footer .legal-links button:hover,
.site-footer .legal-links button:focus-visible,
.site-footer .footer-socials a:hover,
.site-footer .footer-socials a:focus-visible {
  opacity: .58;
  outline: 0;
  text-decoration: none;
}

.site-footer .footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.legal-dialog {
  width: min(640px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(91, 72, 98, .15);
  background: #fcf9fc;
  color: #55475a;
  box-shadow: 0 24px 70px rgba(55, 37, 65, .14);
}

.legal-dialog::backdrop {
  background: rgba(48, 38, 52, .3);
  backdrop-filter: blur(2px);
}

.legal-dialog-inner {
  position: relative;
  padding: 34px;
}

.legal-dialog h2 {
  margin: 0 48px 20px 0;
  color: #55475a;
  font: 400 30px/1.15 'Bodoni Moda', Georgia, serif;
  letter-spacing: 0;
}

.legal-dialog p {
  margin: 0;
  color: rgba(74, 53, 79, .68);
  font: 300 14px/1.75 'Syne', Arial, sans-serif;
}

.legal-dialog .legal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(91, 72, 98, .15);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 300 20px/1 Arial, sans-serif;
  cursor: pointer;
}

html[dir='rtl'] .site-footer .footer-brand img {
  transform-origin: right center;
}

@media (max-width: 850px) {
  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 16px 24px;
  }

  .site-footer .legal-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5%;
    gap: 16px;
  }

  .site-footer .footer-brand img {
    width: 92px;
  }

  .site-footer .legal-links,
  .site-footer .footer-socials {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .legal-dialog-inner {
    padding: 28px 24px;
  }
}
