.site-footer {
  width: min(850px, 100%);
  margin: 64px auto 0;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(247, 247, 247, 0.72);
  font-size: 14px;
  line-height: 1.4;
  border-top: 1px solid rgba(247, 247, 247, 0.12);
}

.site-footer__copy {
  margin: 0;
  white-space: nowrap;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__link {
  color: rgba(247, 247, 247, 0.72);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease;
}

.site-footer__link:hover {
  color: var(--surface);
}

body.legal-modal-open,
html.legal-modal-open {
  overflow: hidden;
}

body.legal-modal-open {
  position: fixed;
  inset: 0;
  width: 100%;
}

.legal-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--surface);
  overflow: visible;
}

.legal-modal[open] {
  animation: legal-modal-fade-up 0.28s ease-out;
}

.legal-modal[open]::backdrop {
  animation: legal-modal-backdrop-in 0.28s ease-out;
}

.legal-modal::backdrop {
  background: rgba(0, 62, 163, 0.72);
  backdrop-filter: blur(8px);
}

@keyframes legal-modal-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes legal-modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal[open],
  .legal-modal[open]::backdrop {
    animation: none;
  }
}

.legal-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  border-radius: 24px;
  background: rgba(247, 247, 247, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 56px 32px -8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.legal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 247, 247, 0.12);
  color: var(--surface);
  cursor: pointer;
}

.legal-modal__close:hover {
  background: rgba(247, 247, 247, 0.2);
}

.legal-modal__body {
  padding: 40px 40px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-modal__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  padding-right: 36px;
}

.legal-modal__updated {
  margin: 0 0 28px;
  font-size: 13px;
  color: rgba(247, 247, 247, 0.55);
}

.legal-modal__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-modal__content h3 {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.legal-modal__content p,
.legal-modal__content li {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(247, 247, 247, 0.85);
}

.legal-modal__content ul {
  margin: 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 24px;
  }

  .site-footer__links {
    justify-content: flex-start;
    gap: 20px;
  }

  .legal-modal__body {
    padding: 32px 24px 40px;
  }

  .legal-modal__title {
    font-size: 24px;
  }
}
