/* Footer legal modals — premium black & gold */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(4, 2, 2, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.legal-modal__panel {
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  background: linear-gradient(165deg, rgba(22, 16, 12, 0.98), rgba(6, 4, 3, 0.99));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.legal-modal__head {
  position: relative;
  flex-shrink: 0;
}

.legal-modal__banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  object-position: center;
}

.legal-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #f0e6cc;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-modal__close:hover {
  background: rgba(201, 169, 110, 0.2);
  color: #fff;
}

.legal-modal__title {
  margin: 0;
  padding: 14px 20px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4b87a;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}

.legal-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 22px;
  font-family: Montserrat, sans-serif;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(240, 230, 204, 0.88);
  -webkit-overflow-scrolling: touch;
}

.legal-modal__body h3 {
  margin: 18px 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c9a96e;
}

.legal-modal__body h3:first-child {
  margin-top: 0;
}

.legal-modal__body p {
  margin: 0 0 10px;
}

.legal-modal__body ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.legal-modal__body li {
  margin-bottom: 6px;
}

.lobby-footer__links a[data-legal] {
  cursor: pointer;
}
