/* Readable legal dialogs. These rules replace the legacy fixed-pixel popups. */
#popup,
#popup1 {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200;
  width: 100vw !important;
  height: 100vh !important;
  padding: clamp(16px, 4vw, 56px);
  overflow: hidden;
  background: rgba(16, 22, 38, 0.78);
}

#popup .popup-content,
#popup1 .popup-content {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: min(920px, 100%) !important;
  height: auto !important;
  max-height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  color: #202437;
  font-size: 15px;
  line-height: 1.65;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

#popup .popup-content p,
#popup1 .popup-content p,
#popup .legal-copy,
#popup1 .legal-copy {
  margin: 0;
  text-align: left !important;
}

#popup .popup-content strong,
#popup1 .popup-content strong {
  color: #282463;
}

#popup .popup-content table,
#popup1 .popup-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  background: #fff;
}

#popup .popup-content th,
#popup .popup-content td,
#popup1 .popup-content th,
#popup1 .popup-content td {
  padding: 10px 12px;
  vertical-align: top;
  border: 1px solid #cfd4dc !important;
}

#popup a.close-popup,
#popup1 a.close-popup1 {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 1;
  width: 42px;
  height: 42px;
  color: #282463;
  font-size: 38px;
  font-weight: 400;
  line-height: 38px;
  text-align: center;
  text-decoration: none;
  background: #f2f3f6;
  border-radius: 50%;
}

#popup a.close-popup:hover,
#popup1 a.close-popup1:hover {
  color: #fff;
  background: #2dadaf;
}

@media (max-width: 600px) {
  #popup,
  #popup1 {
    padding: 10px;
  }

  #popup .popup-content,
  #popup1 .popup-content {
    padding: 52px 20px 24px;
    font-size: 14px;
    border-radius: 12px;
  }

  #popup .popup-content table,
  #popup1 .popup-content table {
    display: block;
    overflow-x: auto;
  }
}


/* Hash targets open these dialogs without additional JavaScript. */
#popup, #popup1 { display: none; }
#popup:target, #popup1:target { display: block; }
#popup .title-text, #popup1 .title-text {
  margin: 0 0 24px;
  padding-right: 36px;
  color: #282463;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}
