.site-footer {
  background-image: linear-gradient(to right, #154f5a, #216978);
  color: #ffffff;
  padding: 3rem 0;
  margin-top: 3rem;
}

.site-footer__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding: 0 2rem;
  }
}

.site-footer__panels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(33, 105, 120, 0.5);
}

.site-footer__panel {
  width: 100%;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .site-footer__panel {
    width: 50%;
    margin-bottom: 0;
  }

  .site-footer__panel--risk {
    padding-right: 1rem;
  }

  .site-footer__panel--legal {
    padding-left: 1rem;
  }
}

.site-footer__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer__title--warn {
  color: #fde047;
}

.site-footer__title--muted {
  color: #d1d5db;
}

.site-footer__copy {
  font-size: 0.75rem;
  line-height: 1.625;
  color: #9ca3af;
}

.site-footer__copy + .site-footer__copy {
  margin-top: 0.5rem;
}

.site-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(33, 105, 120, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
  }
}

.site-footer__rights {
  font-size: 0.75rem;
  color: #d1d5db;
  margin: 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__nav a {
  font-size: 0.75rem;
  color: #d1d5db;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #e0f2f4;
}

.legal-dialog {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
}

.legal-dialog.modal-open .legal-dialog__panel {
  transform: translateY(0);
  opacity: 1;
}

.legal-dialog__panel {
  background: #fff;
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: min(42rem, 92%);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(12px);
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.legal-dialog__panel .dlg-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: #9ca3af;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

.legal-dialog__panel .dlg-close:hover {
  color: #4b5563;
}
