/* Las páginas legales. Va encima de `styles.css`, que ya trae el fondo, la cabecera y el pie.

   Una política de privacidad se lee de arriba abajo, entera y a veces con prisa —normalmente
   cuando alguien ya está molesto—. Así que aquí no hay tarjetas, ni columnas, ni nada que
   distraiga: una sola columna estrecha, mucho aire entre apartados y títulos que se distinguen
   de un vistazo para poder saltar al que interesa.

   El contraste está medido sobre el fondo de la casa (#efe6d4): el texto sale por encima de
   12:1 y el apagado por encima de 5:1, los dos por encima de lo que pide la AA. */

.legal {
  max-width: 44rem;                /* ~70 caracteres: lo que se lee sin perder la línea */
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.02rem;
}

.legal h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .35rem; text-wrap: balance; }

.legal h2 {
  font-size: 1.18rem;
  margin: 2.6rem 0 .6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  text-wrap: balance;
}

.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.legal li { margin-bottom: .45rem; }
.legal b { font-weight: 650; }

/* La fecha de entrada en vigor. Es lo que permite comprobar qué versión se aceptó. */
.legal-vigor {
  margin: 0 0 1.6rem;
  font-size: .85rem;
  color: #5f5a54;                  /* 6.2:1 sobre el fondo */
  letter-spacing: .02em;
}

.legal-entrada { font-size: 1.1rem; line-height: 1.65; margin-bottom: 1.5rem; }

/* Los datos del responsable, en dos columnas que se apilan en el móvil. */
.legal-datos {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: .4rem 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.legal-datos dt { font-weight: 650; color: #4a453f; }
.legal-datos dd { margin: 0; overflow-wrap: anywhere; }

.legal-nota {
  padding: .85rem 1.05rem;
  background: var(--surface);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 8px 8px 0;
  font-size: .95rem;
}

.legal-idioma { margin-top: 3rem; font-size: .95rem; }

/* Los enlaces van SUBRAYADOS, no solo en otro color: el color por sí solo deja fuera a quien no
   lo distingue, y en una página de derechos el enlace de la AEPD es de los que hay que ver. */
.legal a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { text-decoration-thickness: 2px; }
.legal a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .legal { padding: 1.75rem 1.1rem 3rem; font-size: 1rem; }
  .legal h1 { font-size: 1.6rem; }
  .legal-datos { grid-template-columns: 1fr; gap: .1rem .5rem; }
  .legal-datos dd { margin-bottom: .6rem; }
}

/* Los enlaces del índice y del pie median 20 px de alto en el móvil: el texto y nada más. Con
   sitio para el dedo se aciertan; sin él se falla y se pulsa el de al lado. */
@media (max-width: 640px) {
  .legal a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Privacidad v3: alcance limitado a estas dos páginas, sin alterar otros avisos legales. */
.privacy-page .legal { max-width: 62rem; padding-top: 3.5rem; }
.privacy-page .logo img { height: 100px; max-width: 170px; margin: 0; }
.privacy-page .legal h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.3rem, 6vw, 3.7rem); letter-spacing: -.035em; margin: .35rem 0 1rem; }
.privacy-page .legal-entrada { max-width: 45rem; color: #494e45; }
.privacy-eyebrow { color: #2c4a3e; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.privacy-page .privacy-overview h2 { border: 0; margin: 2rem 0 .7rem; padding: 0; font-size: 1.35rem; }
.privacy-owners { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.25rem 0; }
.privacy-page .privacy-owners a { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.4rem; background: #faf9f4; border: 1px solid #c8cebe; border-radius: 16px; text-decoration: none; color: #2c4a3e; }
.privacy-owners span { font-size: .88rem; }
.privacy-owners strong { font-size: 1.18rem; line-height: 1.4; }
.privacy-owners a:hover { border-color: #2c4a3e; background: #f5f6ed; }
.privacy-index { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.7rem 0 2rem; padding: 1rem 0; border-block: 1px solid #ccd0c3; }
.privacy-page .privacy-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; }
.privacy-section { background: #fcfbf7; border: 1px solid #d5d6ca; border-radius: 22px; padding: clamp(1.15rem, 4vw, 3rem); margin: 1.5rem 0; }
.privacy-page .privacy-section h2 { border: 0; margin: .25rem 0 1rem; padding: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.privacy-page .privacy-section h3 { font-size: 1.12rem; line-height: 1.45; margin: 2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid #dedfd4; }
.privacy-pepa { border-top: 4px solid #2c4a3e; }
.privacy-page .legal-datos { background: #f1f3eb; border-color: #d1d6c7; }
.privacy-page .legal-nota { background: #edf1e7; color: #29382d; }
.privacy-language { font-size: .88rem; }
.privacy-contact { margin-top: 1.3rem !important; font-weight: 600; }
.privacy-history { margin-top: 3rem; }
.privacy-page :is(h2,h3,main)[id] { scroll-margin-top: 85px; }
.privacy-page :is(a,button):focus-visible { outline: 3px solid #2c4a3e; outline-offset: 4px; }
.privacy-skip { position: fixed; top: -100px; left: 1rem; z-index: 100; background: #fff; color: #203e35; padding: .75rem 1rem; border-radius: 6px; }
.privacy-skip:focus { top: .5rem; }
@media (max-width: 640px) {
  .privacy-page .top { padding: 0 1rem; }
  .privacy-page .logo img { height: 74px; max-width: 118px; }
  .privacy-page .nav { display: flex; flex-direction: row; position: static; width: auto; max-height: none; opacity: 1; overflow: visible; background: none; border: 0; box-shadow: none; padding: 0; gap: .65rem; }
  .privacy-page .nav a { font-size: .68rem; min-height: 44px; display: inline-flex; align-items: center; }
  .privacy-page .legal { padding: 2rem 1rem 3rem; }
  .privacy-owners { grid-template-columns: 1fr; }
  .privacy-section { border-radius: 16px; }
  .privacy-page .legal a { overflow-wrap: anywhere; max-width: 100%; }
  .privacy-page .legal p a { display: inline; min-height: 0; }
  .privacy-page .legal-datos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .privacy-page { scroll-behavior: auto; } }
@media print {
  .privacy-page .top, .privacy-index, .privacy-skip, .privacy-page [data-cookies] { display: none; }
  .privacy-page .legal { max-width: none; padding: 0; }
  .privacy-section { border: 0; padding: 0; }
}
