/* Componentes de privacidad: colores de ORUapp, sin fuentes ni recursos externos. */
.privacy-ui, .privacy-consent, .legal-content { color: #111827; }
.privacy-ui [hidden] { display: none !important; }
.privacy-ui a, .privacy-consent a, .legal-content a { color: #1b1f5e; text-decoration: underline; }
.privacy-ui button, .privacy-choice, .privacy-consent label { font: inherit; }
.privacy-ui :focus-visible, .privacy-consent :focus-visible, .legal-content :focus-visible,
#contactForm :focus-visible, [data-cookie-preferences]:focus-visible, [data-cookie-withdraw]:focus-visible {
  outline: 3px solid #4955db; outline-offset: 4px;
}
.cookie-banner {
  position: fixed; z-index: 1050; inset: auto 1rem 1rem;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem; background: #fff; border: 1px solid #b9bdd8;
  border-radius: 1rem; box-shadow: 0 8px 40px #0b102233;
  max-height: 65dvh; overflow-y: auto;
}
.cookie-banner > div:first-child { flex: 1; }
.cookie-banner h2, .cookie-dialog h2 { font-size: 1.35rem; color: #1b1f5e; }
.cookie-banner p { margin-bottom: .5rem; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.privacy-button {
  min-height: 44px; padding: .7rem 1rem; border: 2px solid #1b1f5e;
  border-radius: .5rem; background: #1b1f5e; color: #fff;
  font-weight: 600; cursor: pointer; line-height: 1.35;
}
.privacy-button:hover { background: #2c2a7d; border-color: #2c2a7d; }
.privacy-secondary { background: #fff; color: #1b1f5e; }
.privacy-secondary:hover { background: #eeeff8; }
.cookie-dialog {
  width: min(660px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  border: 1px solid #b9bdd8; border-radius: 1rem; padding: 1.5rem;
  color: #111827; background: #fff; overflow-y: auto;
}
.cookie-dialog::backdrop { background: #0b1022b3; }
.cookie-dialog section { border-top: 1px solid #d6d8e6; padding-top: 1rem; margin-top: 1rem; }
.cookie-dialog h3 { font-size: 1.1rem; color: #1b1f5e; }
.privacy-choice { display: flex; align-items: center; gap: .7rem; min-height: 44px; cursor: pointer; }
.privacy-choice input, #contactConsent { width: 1.2rem; height: 1.2rem; accent-color: #1b1f5e; flex-shrink: 0; }
.privacy-notice {
  position: fixed; z-index: 1051; top: 1rem; left: 50%; transform: translateX(-50%);
  width: min(38rem, calc(100% - 2rem)); background: #fff; border: 1px solid #b9bdd8;
  border-radius: .5rem; padding: .75rem; box-shadow: 0 4px 20px #0b102222;
  pointer-events: none;
}
.privacy-draft { border-left: 4px solid #936400; background: #fff5d9; padding: .75rem; color: #533800; }
.privacy-storage-error, #contactError { color: #a01624; }
#contactError, #contactSuccess { padding: .8rem; margin-bottom: 1rem; }
#contactError { background: #fff0f1; }
#contactSuccess { color: #14532d; background: #edf9f1; }
#sliderContainer { touch-action: pan-y; }
#sliderHandle:focus-visible { outline-offset: -4px; outline-color: #fff; }
.legal-header { padding: 1.2rem 0; border-bottom: 1px solid #dddfea; }
.legal-header img { width: 130px; max-height: 55px; }
.legal-content { max-width: 900px; margin: auto; padding: 2rem 1rem 3rem; overflow-wrap: anywhere; }
.legal-content h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.legal-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-content .table-responsive { margin: 1.5rem 0; }
.legal-content table { min-width: 600px; }
.legal-footer { background: #0b1022; color: #fff; padding: 1.5rem; }
.legal-footer a, .footer [data-cookie-preferences], .footer a[href="cookies.html"], .footer a[href="privacidad.html"] { color: #fff; text-decoration: underline; }
.privacy-withdraw { border: 0; background: transparent; color: inherit; text-decoration: underline; padding: .4rem 0; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .cookie-banner { display: block; }
  .cookie-banner .privacy-actions { margin-top: 1rem; }
}
@media (max-width: 576px) {
  .cookie-banner { inset: auto .5rem .5rem; padding: 1rem; }
  .privacy-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .privacy-button { padding: .65rem .5rem; }
  .cookie-dialog { padding: 1rem; }
}
