/* =========================================================================
   css/legal2026.css - Paginas legales 2026 (politica-de-cookies.php,
   politica-de-privacidad.php, propiedad-intelectual.php). Contenido y, a la
   derecha, columna fija al hacer scroll (partials/legal2026_lateral.php: indice,
   "Configurar cookies" y enlaces legales), como empleo.php. El texto que sale de
   la BD va en .leg26-texto y toma los mismos estilos. La tabla de cookies tiene el
   aspecto de la del panel de politica (css/cookies2026.css) y en movil cada fila
   pasa a ficha, como agencias/css/paginas/politica-de-cookies.css. Texto gris de
   fondo y margen superior: css/certificacion2026.css.
   ========================================================================= */

.leg26-rejilla {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	column-gap: 48px;
	align-items: start;
	padding: max(60px, 8vw) 0 50px;
}

.leg26-contenido {
	line-height: 1.6;
}

/* estilos2.css da a h1/h2/h3 la Anton, fondo, icono y otros tamanos */
.leg26 .leg26-titulo,
.leg26 .leg26-subtitulo,
.leg26 .leg26-tipo-titulo {
	margin: 0;
	padding: 0;
	background: none;
	letter-spacing: 0;
	text-align: left;
}

.leg26 .leg26-titulo {
	color: #333f4f;
	font-family: var(--fuente-titulos);
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.leg26 .leg26-intro {
	margin: 10px 0 0;
	font-size: 1.1rem;
}

.leg26-texto { margin-top: 10px; }

.leg26-seccion {
	padding-top: 2.5rem;
	scroll-margin-top: 70px; /* debajo del menu fijo al saltar desde el indice */
}

/* Titulos del texto de la BD (h2 numerados y h3 "a. ...", con espacios y tabuladores delante) */
.leg26-texto h2,
.leg26-texto h3 {
	margin: 0;
	padding: 0;
	background: none;
	letter-spacing: 0;
	text-align: left;
	white-space: normal;
}

.leg26-texto h2 {
	padding-top: 2.5rem;
	scroll-margin-top: 30px;
}

.leg26-texto h3 {
	margin: 1.5rem 0 .5rem;
	color: #232d3b;
	font-family: var(--fuente-texto);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.leg26-texto a,
.leg26-texto a:visited {
	color: #b37a0f;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.leg26-texto a:hover { color: #dd9d1f; }

.leg26 .leg26-subtitulo,
.leg26-texto h2 {
	margin-bottom: 1rem;
	color: #f4b333;
	font-family: var(--fuente-titulos);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.25;
}

.leg26 p {
	margin: 0 0 1rem;
	text-align: left;
}

/* estilos2.css pone las negritas en blanco en escritorio (.negritas_en_blanco b,strong) */
.leg26 strong,
.leg26 b {
	color: #232d3b;
	font-weight: 700;
}

/* ---------- Listas con vineta cuadrada amarilla ---------- */
.leg26 .leg26-lista,
.leg26-texto ul {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.leg26 .leg26-lista li,
.leg26-texto ul li {
	position: relative;
	margin: 0 0 .5rem;
	padding: 0 0 0 1.4rem;
	background: none;
	list-style: none;
}

.leg26 .leg26-lista li::before,
.leg26-texto ul li::before {
	content: "";
	position: absolute;
	top: .55em;
	left: 0;
	width: 8px;
	height: 8px;
	background-color: #f4b333;
}

/* ---------- Tipos de cookies: una tarjeta por criterio, con el nombre a la izquierda ---------- */
.leg26-tipos {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
}

.leg26-tipo {
	padding: 1.25rem;
	border: 1px solid #e6e9ee;
	border-radius: .75rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(35, 45, 59, .06);
	font-size: .9rem;
}

.leg26 .leg26-tipo-titulo {
	margin-bottom: .75rem;
	color: #232d3b;
	font-family: var(--fuente-texto);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.leg26-tipo dl {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: .75rem 1.5rem;
	margin: 0;
}

.leg26-tipo dt {
	color: #232d3b;
	font-weight: 700;
}

.leg26-tipo dd {
	margin: 0;
	color: #5b6573;
}

/* ---------- Tabla de cookies: cada grupo con su banda oscura y filas cebreadas ---------- */
.leg26-tabla {
	overflow-x: auto;
	margin: 0 0 1rem;
	border: 1px solid #e6e9ee;
	border-radius: .75rem;
	box-shadow: 0 1px 3px rgba(35, 45, 59, .06);
}

.leg26-tabla table {
	width: 100%;
	border-collapse: collapse;
	color: #5b6573;
	font-family: var(--fuente-texto);
	font-size: .85rem;
}

.leg26-tabla th {
	padding: .6rem 1rem;
	border: 0;
	background: #f1f3f6;
	color: #232d3b;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.leg26-tabla th[colspan] {
	padding: .75rem 1rem;
	background: #232d3b;
	color: #fff;
	font-size: .85rem;
	letter-spacing: .05em;
}

/* Separacion entre grupos */
.leg26-tabla tbody + thead th[colspan] {
	border-top: 4px solid #fff;
}

.leg26-tabla td {
	padding: .6rem 1rem;
	border: 0;
	border-top: 1px solid #edf0f3;
	background: #fff;
	vertical-align: top;
	text-align: left;
}

.leg26-tabla tbody tr:nth-child(even) td { background: #fafbfc; }
.leg26-tabla tbody tr:hover td { background: #fdf3dd; }

/* Nombre de la cookie en monoespaciada; tipo y duracion sin partir */
.leg26-tabla td:first-child {
	color: #232d3b;
	font-family: Consolas, Menlo, monospace;
	font-size: .8rem;
	font-weight: 600;
	min-width: 13rem;
	overflow-wrap: anywhere;
}

.leg26-tabla td:nth-child(2),
.leg26-tabla td:nth-child(3) {
	white-space: nowrap;
}

.leg26-tabla td:nth-child(2) {
	color: #8a6000;
	font-weight: 600;
}

/* ---------- Enlaces a la ayuda de cada navegador ---------- */
.leg26 .leg26-navegadores {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.leg26 .leg26-navegadores li {
	margin: 0;
	padding: 0;
	background: none;
	list-style: none;
}

.leg26-navegadores a,
.leg26-navegadores a:visited {
	display: inline-block;
	padding: .5rem 1rem;
	border: 1px solid #e6e9ee;
	border-radius: 50rem;
	background: #fff;
	color: #232d3b;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}

.leg26-navegadores a:hover,
.leg26-navegadores a:focus-visible {
	border-color: #f4b333;
	background-color: #fdf3dd;
	color: #232d3b;
}

/* ---------- Columna derecha ---------- */
.leg26-lateral {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 20px;
}

@media (min-width: 992px) {
	.leg26-lateral {
		position: -webkit-sticky;
		position: sticky;
		top: 77px; /* debajo del menu fijo */
	}
}

.leg26-panel {
	padding: 1.25rem 1.5rem;
	border: 1px solid #e6e9ee;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(35, 45, 59, .06);
	font-size: .9rem;
}

.leg26 .leg26-panel-titulo {
	margin: 0 0 .75rem;
	color: #232d3b;
	font-family: var(--fuente-titulos);
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
}

.leg26 .leg26-indice,
.leg26 .leg26-legal {
	margin: 0;
	padding: 0;
	list-style: none;
}

.leg26 .leg26-indice li,
.leg26 .leg26-legal li {
	margin: 0;
	padding: 0;
	background: none;
	list-style: none;
}

.leg26 .leg26-indice { counter-reset: leg26-indice; }
.leg26 .leg26-indice li { counter-increment: leg26-indice; }

.leg26-indice a,
.leg26-indice a:visited,
.leg26-legal a,
.leg26-legal a:visited {
	display: flex;
	gap: .6rem;
	padding: .4rem 0;
	border-bottom: 1px solid #edf0f3;
	color: #4a4f57;
	text-decoration: none;
	transition: color .15s;
}

.leg26-indice li:last-child a,
.leg26-legal li:last-child a {
	border-bottom: 0;
}

.leg26-indice a::before {
	content: counter(leg26-indice, decimal-leading-zero);
	color: #f4b333;
	font-weight: 700;
}

.leg26-legal a::before {
	content: "\203A"; /* › */
	color: #f4b333;
	font-weight: 700;
}

.leg26-indice a:hover,
.leg26-indice a:focus-visible,
.leg26-legal a:hover,
.leg26-legal a:focus-visible {
	color: #dd9d1f;
}

/* "Tus preferencias": fondo oscuro con el boton amarillo */
.leg26-panel.leg26-panel-oscuro {
	border-color: #232d3b;
	background: #232d3b;
	color: #e3e3e3;
}

.leg26 .leg26-panel-oscuro .leg26-panel-titulo { color: #f4b333; }

.leg26-boton {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem 1.2rem;
	border: 0;
	border-radius: 6px;
	background-color: #f4b333;
	color: #232d3b;
	font-family: var(--fuente-texto);
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s;
}

.leg26-boton:hover,
.leg26-boton:focus-visible {
	background-color: #dd9d1f;
}

.leg26-boton:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.leg26-navegadores a, .leg26-indice a, .leg26-legal a, .leg26-boton { transition: none; }
}

/* ---------- Tablet y movil ---------- */
@media (max-width: 575.98px) {
	.leg26-tipo dl { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
	.leg26-tipo dd { margin-bottom: .55rem; }
}

@media (max-width: 991.98px) {
	.leg26-rejilla {
		grid-template-columns: minmax(0, 1fr);
		padding: 30px 16px 40px;
	}

	/* Indice y preferencias arriba no aportan: la columna va al final */
	.leg26-lateral { margin-top: 2.5rem; }
	.leg26 .leg26-titulo { font-size: 2.2rem; }
	.leg26 .leg26-subtitulo { font-size: 1.3rem; }
}

/* Cuatro columnas no caben a lo ancho de un movil: cada fila pasa a ser una ficha con un
   dato por linea y su etiqueta delante (las columnas son siempre las mismas y en el mismo orden) */
@media (max-width: 767.98px) {
	.leg26-tabla table,
	.leg26-tabla thead,
	.leg26-tabla tbody,
	.leg26-tabla tr,
	.leg26-tabla th,
	.leg26-tabla td {
		display: block;
		width: 100%;
	}

	/* Fila de cabeceras (Cookie | Tipo | Duracion | Descripcion): ya van en cada dato */
	.leg26-tabla thead tr:nth-child(2) { display: none; }

	.leg26-tabla tbody tr {
		padding: .5rem 0;
		border-top: 1px solid #edf0f3;
	}

	.leg26-tabla tbody tr:nth-child(even) { background: #fafbfc; }

	.leg26-tabla td,
	.leg26-tabla tbody tr:nth-child(even) td,
	.leg26-tabla tbody tr:hover td {
		padding: .2rem 1rem;
		border: 0;
		background: transparent;
		white-space: normal !important;
	}

	.leg26-tabla td::before {
		color: #232d3b;
		font-family: var(--fuente-texto);
		font-size: .8rem;
		font-weight: 700;
	}

	.leg26-tabla td:nth-child(1)::before { content: "Cookie: "; }
	.leg26-tabla td:nth-child(2)::before { content: "Tipo: "; }
	.leg26-tabla td:nth-child(3)::before { content: "Duraci\00F3n: "; }
	.leg26-tabla td:nth-child(4)::before { content: "Descripci\00F3n: "; }
}
