/* Ajustos d'accessibilitat i avisos legals (Webiting, novembre 2026) */

/* Focus visible amb el teclat (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible, .mil-slider-btn:focus-visible {
  outline: 3px solid #C06014 !important;
  outline-offset: 3px !important;
}

/* Text només per a lectors de pantalla (etiquetes dels formularis) */
.gv-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Primera capa d'informació de protecció de dades als formularis */
.gv-info { margin-top: 14px; font-size: 13px; line-height: 1.55; }
.gv-info a { text-decoration: underline; }

/* Etiqueta de les imatges generades amb IA (art. 50 Reglament d'IA) */
.mil-cover .mil-hover-frame { position: relative; }
.gv-ia-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 5;
  background: rgba(17, 17, 17, .85); color: #fff;
  font-size: 12px; line-height: 1.3; letter-spacing: .02em; text-transform: none;
  padding: 5px 9px; border-radius: 3px; pointer-events: none;
}

/* Mapa de Google que només es carrega si l'usuari ho demana */
.gv-mapa {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 32px; text-align: center; background: #ECECEA; color: #111;
}
.gv-mapa p { max-width: 420px; margin: 0; font-size: 15px; line-height: 1.5; color: #111; }
.gv-mapa a { color: #111; text-decoration: underline; }
.gv-mapa button {
  min-height: 44px; padding: 10px 22px; border: 0; border-radius: 40px;
  background: #111; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
@media (max-width: 992px) { .gv-mapa { position: relative; min-height: 360px; } }

/* Contrast de text (WCAG 1.4.3) */
.legal-tabs .legal-tab { color: #4a4a4a; border-color: #4a4a4a; }
.legal-tabs .legal-tab.active, .legal-tabs .legal-tab:hover { background: #A84F0C; border-color: #A84F0C; color: #fff; }
.mil-head2 .mil-a2 { color: #C06014; }
.col-lg-4.mil-mb60 > p.mil-text-md { color: #555; }
.legal-sec p, .legal-sec li { color: #444; }
.legal-sec .ltable td, .legal-sec .ltable td strong { color: #333; }
.legal-sec .ltable th, .legal-sec .ltable td { border-color: #c4c4c4; }
.legal-sec a.mil-a2, .legal-sec .mil-text-link { color: #A84F0C; }
/* Textos legals dels formularis de newsletter (sobre fons clar) */
.mil-subscribe-form .gv-info, .mil-subscribe-form label { color: #555; }
.mil-subscribe-form a.mil-a1, .mil-subscribe-form a.mil-text-link { color: #A84F0C; }
