.legal-modal[hidden] { display: none; }
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, .78);
  backdrop-filter: blur(8px);
}
.legal-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: min(78vh, 680px);
  overflow: hidden;
  background: #171518;
  border: 1px solid rgba(255, 217, 0, .42);
  border-radius: 10px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .6);
}
.legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #f8e7bb;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
  letter-spacing: .08em;
}
.legal-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: transparent;
  color: #f8e7bb;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.legal-modal__close:hover,
.legal-modal__close:focus-visible { border-color: #ffd900; color: #ffd900; outline: none; }
.legal-modal__frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #0b0b0d;
}
body.legal-modal-open { overflow: hidden; }
