.pagina-legal {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem 5rem;
  line-height: 1.7;
  color: #2a1d1a;
}

.pagina-legal h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
  color: #3E2723;
}


.pagina-legal h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.4rem;
  margin: 2.5rem 0 0.8rem;
  color: #3E2723;
  border-bottom: 2px solid #e8d6c3;
  padding-bottom: 0.3rem;
}

.pagina-legal h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: #5a3d34;
}

.pagina-legal p,
.pagina-legal li {
  font-size: 1rem;
}

.pagina-legal ul,
.pagina-legal ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.2rem;
}

.pagina-legal a {
  color: #8a5a3a;
  text-decoration: underline;
}

.pagina-legal a:hover,
.pagina-legal a:focus {
  color: #3E2723;
}


.pie-legal__enlaces {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: 0;
  margin: 1rem 0 0;
  flex-wrap: wrap;
}

.pie-legal__enlaces a {
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.8;
  text-decoration: none;
}

.pie-legal__enlaces a:hover {
  opacity: 1;
  text-decoration: underline;
}

.cookies-banner {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  z-index: 9999;
  background: #3E2723;
  color: #F5E6D3;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: "Lato", system-ui, sans-serif;
}

.cookies-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookies-banner__texto {
  flex: 1 1 60%;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}

.cookies-banner__texto a {
  color: #F5E6D3;
  text-decoration: underline;
}

.cookies-banner__acciones {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookies-banner__btn {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 0;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.15s ease, background 0.2s ease;
}

.cookies-banner__btn--aceptar {
  background: #F5E6D3;
  color: #3E2723;
}

.cookies-banner__btn--aceptar:hover {
  transform: translateY(-1px);
}

.cookies-banner__btn--rechazar {
  background: transparent;
  color: #F5E6D3;
  border: 1px solid #8a6b5d;
}

.cookies-banner__btn--rechazar:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contacto-mapa__aviso {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #6b4f43;
}

.contacto-mapa__aviso a {
  color: inherit;
  text-decoration: underline;
}

/* Legal pages header */
.encabezado-legal {
  background: linear-gradient(135deg, #fff 0%, #f5e6d3 100%);
  border-bottom: 1px solid rgba(215, 204, 200, 0.5);
  padding: 1rem 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(62, 39, 35, 0.1);
}

.encabezado-legal__contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.encabezado-legal__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.encabezado-legal__logo img {
  display: block;
  height: 40px;
  width: auto;
}

.encabezado-legal__volver {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3E2723;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(62, 39, 35, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.encabezado-legal__volver:hover {
  background: rgba(62, 39, 35, 0.06);
  color: #5d4037;
}

/* Legal pages main content */
.contenido-legal {
  min-height: 60vh;
}

.seccion--legal {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.seccion--legal__cabecera {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8d6c3;
}

.seccion--legal__actualizado {
  font-size: 0.88rem;
  color: #8d6e63;
  margin: 0.35rem 0 0;
}

/* Legal pages footer */
.pie-legal {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f0f0f;
  color: #c4b4aa;
  font-size: 0.85rem;
}

.pie-legal__contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.pie-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
}

.pie-legal__nav a {
  color: #c4b4aa;
  text-decoration: none;
  transition: color 0.2s;
}

.pie-legal__nav a:hover,
.pie-legal__nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

.pie-legal__nav span[aria-hidden="true"] {
  opacity: 0.4;
}

.pie-legal__copy {
  margin: 0;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .cookies-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookies-banner__acciones {
    justify-content: space-between;
  }
  .cookies-banner__btn {
    flex: 1 1 auto;
  }
}
