.legal-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.legal-links button,
.legal-links a {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.legal-links button:hover,
.legal-links button:focus-visible,
.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.legal-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(5, 18, 28, .62);
  backdrop-filter: blur(4px);
}
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 12001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.legal-modal[hidden],
.legal-modal-layer[hidden] {
  display: none !important;
}
.legal-modal-dialog {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  color: #26302a;
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
  padding: 44px 48px 42px;
}
.legal-modal-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: #edf2ef;
  color: #264332;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  background: #dde7e0;
  outline: none;
}
.legal-modal-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ef;
  color: #315e40;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.legal-modal h2 {
  margin: 0 0 16px;
  color: #123d68;
  font-size: 31px;
  line-height: 1.15;
}
.legal-modal h3 {
  margin: 25px 0 8px;
  color: #315e40;
  font-size: 17px;
}
.legal-modal p,
.legal-modal li {
  font-size: 13.5px;
  line-height: 1.68;
}
.legal-modal p {
  margin: 0 0 13px;
}
.legal-modal ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.legal-modal-updated {
  color: #6a756d;
  font-size: 12px !important;
}
body.legal-modal-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .legal-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .legal-modal {
    align-items: flex-end;
    padding: 12px;
  }
  .legal-modal-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 18px 18px 10px 10px;
    padding: 40px 24px 30px;
  }
  .legal-modal h2 {
    font-size: 26px;
  }
}
