/* Legal links and consent dialogs for the public LACDiabetes page. */
.legal-center {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 1200;
  box-sizing: border-box;
  max-width: min(520px, calc(100vw - 420px));
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(84, 137, 163, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 5px 20px rgba(28, 61, 78, .14);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #57768a;
  font: 10px/1.35 Arial, sans-serif;
}
.legal-center__label { display: none; }
.legal-center__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.legal-center button, .legal-center__links button {
  border: 0; padding: 2px 0; background: none; color: #26799b; cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.legal-center button:hover, .legal-center button:focus-visible { color: #12526d; }

.legal-dialog-backdrop {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center;
  padding: 20px; background: rgba(13, 35, 49, .62); backdrop-filter: blur(3px);
}
.legal-dialog-backdrop[hidden] { display: none; }
body.legal-dialog-open { overflow: hidden !important; }
.legal-dialog {
  width: min(720px, 100%); max-height: min(84vh, 820px); overflow: auto;
  border: 1px solid #d6e6ec; border-radius: 18px; background: #fff; color: #29475a;
  box-shadow: 0 24px 80px rgba(5, 24, 37, .28); font: 15px/1.65 Arial, sans-serif;
}
.legal-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; background: rgba(255,255,255,.97); border-bottom: 1px solid #e4eef2; }
.legal-dialog__eyebrow { margin: 0 0 4px; color: #1784a5; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.legal-dialog__title { margin: 0; color: #1e4055; font-size: clamp(21px, 4vw, 27px); line-height: 1.2; }
.legal-dialog__close { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #d9e8ed; border-radius: 50%; background: #f7fbfc; color: #395c70; cursor: pointer; font-size: 22px; line-height: 1; }
.legal-dialog__head > div,
.legal-dialog__head > div *,
.legal-dialog #legal-dialog-body,
.legal-dialog #legal-dialog-body *:not(button):not(input) {
  text-align: justify !important;
  text-justify: inter-word;
}
.legal-dialog__body { padding: 19px 26px 26px; }
.legal-dialog__body a,
.legal-dialog__body a:link,
.legal-dialog__body a:visited {
  color: #08789b !important;
  -webkit-text-fill-color: #08789b !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-underline-offset: 3px;
  filter: none !important;
}
.legal-dialog__body a:hover,
.legal-dialog__body a:focus-visible { color: #07536a !important; -webkit-text-fill-color: #07536a !important; }
.legal-dialog__body h3 { margin: 20px 0 7px; color: #244c63; font-size: 16px; }
.legal-dialog__body p { margin: 0 0 12px; }
.legal-dialog__body ul { margin: 0 0 14px; padding-left: 21px; }
.legal-dialog__updated { color: #698495; font-size: 12px; }
.legal-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.legal-button { min-height: 42px; padding: 9px 16px; border: 1px solid #c9e0e9; border-radius: 10px; background: #fff; color: #28566e; cursor: pointer; font: 700 13px Arial, sans-serif; text-align: center; }
.legal-button--primary { border-color: #167f9f; background: #167f9f; color: #fff; }
.legal-button:focus-visible, .legal-dialog__close:focus-visible, .legal-center button:focus-visible { outline: 3px solid #70c9df; outline-offset: 3px; }
.cookie-choice { display: grid; grid-template-columns: 1fr auto; gap: 5px 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid #e7eff2; }
.cookie-choice strong { color: #254b62; }
.cookie-choice p { grid-column: 1; margin: 0; color: #587181; font-size: 13px; }
.cookie-choice input { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; accent-color: #1683a4; }
.cookie-choice input:disabled { opacity: .7; }
.map-consent-placeholder { box-sizing: border-box; width: 100%; min-height: 350px; display: grid; place-items: center; padding: 24px; background: #edf5f7; color: #43677a; text-align: center; }
.map-consent-placeholder p { max-width: 380px; margin: 0 0 12px; }
.map-consent-placeholder button { padding: 9px 14px; border: 0; border-radius: 8px; background: #167f9f; color: #fff; cursor: pointer; font-weight: 700; }
@media (max-width: 620px) {
  .legal-center { right: 8px; bottom: 8px; max-width: calc(100vw - 16px); padding: 6px 8px; }
  .legal-center__links { gap: 3px 8px; }
  .legal-center__links { justify-content: flex-end; }
  .legal-dialog-backdrop { padding: 10px; }
  .legal-dialog { max-height: 92vh; border-radius: 14px; }
  .legal-dialog__head { padding: 18px 18px 14px; }
  .legal-dialog__body { padding: 16px 18px 20px; }
}
