/* Páginas legales (P6, revisado en P18-INT).
   - Ancho de lectura de 800px (--vf-read-w, zz-interior.css) para el grupo .vf-legal y sus hijos.
   - Cadenas largas (URL, correos) se parten solo si desbordan: overflow-wrap:break-word no reduce el
     ancho mínimo de las celdas, así las tablas no cortan palabras como «Sesió-n» o «mese-s».
   - Tablas: texto a 16px; si no caben (móvil, tablas de cookies de 5 columnas) se desplazan dentro
     de su figure (overflow-x:auto de core), sin desbordar la página.
   Títulos h1/h2/h3: zz-interior.css. */
:root .vf-legal {
	--wp--style--global--content-size: var(--vf-read-w, 800px);
	overflow-wrap: break-word;
	padding-top: var(--vf-section-pad, 50px);
	padding-bottom: 60px;
}

:root .vf-legal > h1:first-child {
	margin-top: 0;
	margin-bottom: 30px;
}

:root .vf-legal h2 strong {
	font-weight: inherit;
}

:root .vf-legal .wp-block-table {
	margin-block: 25px;
	font-size: 16px;
	line-height: 1.5;
}

:root .vf-legal table {
	width: 100%;
	border-collapse: collapse;
}

:root .vf-legal :is(th, td) {
	padding: 8px 10px;
	border: 1px solid var(--vf-rule, #e5e2dc);
	vertical-align: top;
	text-align: left;
	word-break: normal;
}

/* Tablas de 1-2 columnas (URL largas en la declaración de accesibilidad): se parten donde haga falta */
:root .vf-legal .wp-block-table table:not(:has(td:nth-child(3))) :is(th, td) {
	overflow-wrap: anywhere;
}

:root .vf-legal .wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

:root .vf-legal th,
:root .vf-legal thead td {
	background-color: var(--vf-gray-1, #f7f7f7);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

@media (max-width: 767.98px) {
	:root .vf-legal .wp-block-table {
		font-size: 15px;
	}

	:root .vf-legal .wp-block-table table {
		min-width: 560px;
	}

	:root .vf-legal .wp-block-table table:not(:has(td:nth-child(3))) {
		min-width: 0;
	}
}
