.paco-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  align-items: center;
}
.paco-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .25em;
}
details[data-paco-atlas-legal="es"], html[data-paco-atlas-legal="es"] details[data-paco-atlas-legal="en"] { display: none; }
html[data-paco-atlas-legal="es"] details[data-paco-atlas-legal="es"] { display: block; }
details[data-paco-atlas-legal] .paco-legal-links {
  padding: .25rem .75rem;
  background: #101720;
  color: #e4f3ff;
}
details[data-paco-atlas-legal] .paco-legal-links a { color: inherit; }
details[data-paco-atlas-legal] { padding: 0 .75rem; color: #e4f3ff; background: #101720; }
details[data-paco-atlas-legal] summary { display: list-item; min-height: 44px; padding: .7rem 0; cursor: pointer; }
.external-video-frame { width: 100%; height: 100%; }
.paco-privacy-banner, .paco-privacy-dialog {
  color: #f3f3f1;
  background: #101720;
  border: 1px solid #526881;
  border-radius: .75rem;
  padding: clamp(.85rem, 2vw, 1.35rem);
  font: 400 1rem/1.5 system-ui, sans-serif;
  box-shadow: 0 12px 42px #0009;
  animation: paco-privacy-appear .2s ease-out both;
}
.paco-privacy-banner {
  position: fixed;
  z-index: 9990;
  inset-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  max-width: 62rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
}
.paco-privacy-banner > div:first-child { flex: 1 1 19rem; }
.paco-privacy-banner strong, .paco-privacy-dialog h2 { display: block; font-size: 1.12rem; margin: 0; color: inherit; }
.paco-privacy-banner p, .paco-privacy-dialog p { margin: .3rem 0; color: #d4dfeb; }
.paco-privacy-banner a, .paco-privacy-dialog a { color: #bfe3ff; text-decoration: underline; text-underline-offset: .2em; }
.paco-privacy-dialog {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  margin: auto;
  inset: 0;
}
.paco-privacy-dialog::backdrop { background: #03070ac9; }
.paco-privacy-categories { display: grid; gap: .35rem; margin-block: 1rem; }
.paco-privacy-categories label { display: flex; gap: .7rem; align-items: center; min-height: 44px; }
.paco-privacy-categories input { margin: 0; width: 1.25rem; height: 1.25rem; accent-color: #a5d3fa; }
.paco-privacy-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.paco-privacy-dialog .paco-privacy-actions { margin-bottom: .8rem; }
.paco-privacy-actions button {
  min-height: 44px;
  border: 1px solid #8caecb;
  border-radius: .35rem;
  background: #1b2d3f;
  color: #f3f3f1;
  padding: .45rem .85rem;
  font: 600 .875rem/1.25 system-ui, sans-serif;
  cursor: pointer;
}
.paco-privacy-actions button:hover { background: #2d4861; }
.paco-privacy-actions button:is([data-paco-privacy-action="accept"],[data-paco-privacy-action="reject"]) { flex: 1 0 auto; }
.paco-privacy-actions button:focus-visible, .paco-privacy-dialog :focus-visible, .paco-privacy-banner a:focus-visible { outline: 2px solid #c2e6ff; outline-offset: 3px; }
[data-paco-embed] [hidden] { display: none !important; }
html:not(.paco-privacy-ready) [data-paco-open-embed] { display: none !important; }
[data-paco-embed-slot] iframe { display: block; width: 100%; height: 100%; border: 0; }
@keyframes paco-privacy-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 420px) {
  .paco-privacy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paco-privacy-actions button { padding-inline: .45rem; }
  .paco-privacy-banner .paco-privacy-actions { width: 100%; }
  .paco-privacy-banner [data-paco-privacy-action="settings"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .paco-privacy-banner, .paco-privacy-dialog { animation: none; }
}

/* Consent controls must also work in the compact map footer and static project exports. */
footer a[data-paco-policy] { color:inherit; margin-inline-start:.6em; text-underline-offset:.2em }
footer.atlas-notice { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:0 .6rem }
.contact-map-window .contact-map-provider { background:#091521 url('/media/contact-valencia-map.svg') center/cover no-repeat; width:100%; height:100%; display:grid; place-items:center }
.contact-map-provider .external-media-notice { background:#07111cf0; color:#e7f2fb; max-width:32rem; margin:.6rem; padding:1rem; text-align:center }
.contact-map-provider button,.contact-map-provider a { display:inline-flex; min-height:44px; align-items:center; padding:.45rem .8rem; color:#def1ff; background:#142639; border:1px solid #67859d; font:inherit }
.contact-map-provider [data-paco-embed-slot] { width:100%;height:100% }
.contact-map-provider [data-paco-close-embed] { position:absolute; inset:.5rem .5rem auto auto }

footer.atlas-notice a { color:#c5e1f4; }
