/* ================================================
   LEGALES - PÁGINA
   ================================================ */

body.page-id-244 {
    overflow-y: scroll;
}

.page-id-244 {
	background-color: #202020;	
}

.legales-page {
	width: 100%;
	min-height: 100vh;
}

@supports (height: 100svh) {
	.legales-page {
		min-height: 100svh;
	}
}

/* ================================================
   DESKTOP LAYOUT
   ================================================ */

.legales-desktop {
	display: grid;
	grid-template-columns: 1fr 1fr;
	height: 100vh;
}

@supports (height: 100svh) {
	.legales-desktop {
		height: 100svh;
	}
}

/* Columna Izquierda - Navegación (Oscura) */
.legales-nav-col {
	background: #202020;
	padding: 4rem 2rem; /* 64px 32px */
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100vh;
	position: sticky;
	top: 0;
	overflow: hidden;
}

@supports (height: 100svh) {
	.legales-nav-col {
		height: 100svh;
	}
}

.legales-nav {
	display: flex;
	flex-direction: column;
	gap: 4rem; /* 64px */
}

.legales-nav-item {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
	
	color: #F6F3E8;
	font-family: "Utile Display";
	font-size: 2.25rem; /* 36px */
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	letter-spacing: -0.045rem; /* -0.72px */
	
	opacity: 0.3;
	transition: opacity 0.3s ease;
}

.legales-nav-item:hover {
	opacity: 0.7;
}

.legales-nav-item.active {
	opacity: 1;
}

/* Columna Derecha - Contenido (Clara) */
.legales-content-col {
	background: #F6F3E8;
	padding: 4rem 2rem; /* 64px 32px */
	height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

@supports (height: 100svh) {
	.legales-content-col {
		height: 100svh;
	}
}

.legales-content-item {
	display: none;
	color: #202020;
	font-family: "Switzer Variable";
	font-size: 0.875rem; /* 14px */
	font-style: normal;
	font-weight: 400;
	line-height: 135%;
	letter-spacing: -0.00875rem; /* -0.14px */
}

.legales-content-item.active {
	display: block;
}

/* Estilos para elementos dentro del contenido WYSIWYG */
.legales-content-item p,
.legales-content-item ul,
.legales-content-item ol,
.legales-content-item li {
	color: #202020;
	font-family: "Switzer Variable";
	font-size: 0.875rem; /* 14px */
	font-style: normal;
	font-weight: 400;
	line-height: 135%;
	letter-spacing: -0.00875rem; /* -0.14px */
}

.legales-content-item p {
	margin: 0 0 1rem 0;
}

.legales-content-item ul,
.legales-content-item ol {
	margin: 0 0 1rem 0;
	padding-left: 1.5rem;
}

.legales-content-item li {
	margin: 0 0 0.5rem 0;
}

.legales-content-item h1,
.legales-content-item h2,
.legales-content-item h3,
.legales-content-item h4,
.legales-content-item h5,
.legales-content-item h6 {
	color: #202020;
	font-family: "Utile Display";
	font-weight: 500;
	margin: 1.5rem 0 1rem 0;
}

.legales-content-item a {
	color: #202020;
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.legales-content-item a:hover {
	opacity: 0.7;
}

/* ================================================
   MOBILE LAYOUT - Oculto por defecto
   ================================================ */

.legales-mobile {
	display: none;
}

/* ================================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ================================================ */

@media (max-width: 767px) {
	
	/* Ocultar desktop layout */
	.legales-desktop.desktop-layout {
		display: none;
	}
	
	/* Mostrar mobile layout */
	.legales-mobile.mobile-layout {
		display: block;
		background: #202020;
		min-height: 100vh;
	}
	
	@supports (height: 100svh) {
		.legales-mobile.mobile-layout {
			min-height: 100svh;
		}
	}
	
	/* Navegación Horizontal */
	.legales-mobile-nav-container {
		margin-top: 80px;
		overflow-x: auto;
		overflow-y: hidden;
		
		/* Ocultar scrollbar */
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
	
	.legales-mobile-nav-container::-webkit-scrollbar {
		display: none;
	}
	
	.legales-mobile-nav {
		display: flex;
		gap: 24px;
		padding: 0 16px;
		white-space: nowrap;
	}
	
	.legales-mobile-nav-item {
		cursor: pointer;
		
		color: #F6F3E8;
		font-family: "Utile Display";
		font-size: 28px;
		font-style: normal;
		font-weight: 500;
		line-height: 110%;
		letter-spacing: -0.56px;
		
		margin: 0;
		opacity: 0.3;
		transition: opacity 0.3s ease;
		flex-shrink: 0;
	}
	
	.legales-mobile-nav-item:hover {
		opacity: 0.7;
	}
	
	.legales-mobile-nav-item.active {
		opacity: 1;
	}
	
	/* Contenido Mobile */
	.legales-mobile-content {
		margin-top: 64px;
		padding: 0 16px 64px 16px;
	}
	
	.legales-mobile-content-item {
		display: none;
		color: #F6F3E8;
		font-family: "Switzer Variable";
		font-size: 14px;
		font-style: normal;
		font-weight: 400;
		line-height: 135%;
		letter-spacing: -0.14px;
	}
	
	.legales-mobile-content-item.active {
		display: block;
	}
	
	/* Estilos para elementos dentro del contenido WYSIWYG Mobile */
	.legales-mobile-content-item p,
	.legales-mobile-content-item ul,
	.legales-mobile-content-item ol,
	.legales-mobile-content-item li {
		color: #F6F3E8;
		font-family: "Switzer Variable";
		font-size: 14px;
		font-style: normal;
		font-weight: 400;
		line-height: 135%;
		letter-spacing: -0.14px;
	}
	
	.legales-mobile-content-item p {
		margin: 0 0 1rem 0;
	}
	
	.legales-mobile-content-item ul,
	.legales-mobile-content-item ol {
		margin: 0 0 1rem 0;
		padding-left: 1.5rem;
	}
	
	.legales-mobile-content-item li {
		margin: 0 0 0.5rem 0;
	}
	
	.legales-mobile-content-item h1,
	.legales-mobile-content-item h2,
	.legales-mobile-content-item h3,
	.legales-mobile-content-item h4,
	.legales-mobile-content-item h5,
	.legales-mobile-content-item h6 {
		color: #F6F3E8;
		font-family: "Utile Display";
		font-weight: 500;
		margin: 1.5rem 0 1rem 0;
	}
	
	.legales-mobile-content-item a {
		color: #F6F3E8;
		text-decoration: underline;
		transition: opacity 0.3s ease;
	}
	
	.legales-mobile-content-item a:hover {
		opacity: 0.7;
	}
}