/**
 * Páginas legales — lectura editorial; resumen informativo en columna izquierda (desktop).
 *
 * @package VioKrisTech_Theme
 */

/*
 * Fondo alineado con la sección Servicios de la portada (.site-front .services en home.css).
 * home.css no se encola en legales: se duplican aquí el patrón PCB y las capas.
 */
body.vk-legal-static {
	--vk-legal-accent: var(--vk-primary, #7c3aed);
	--vk-legal-read: 43.75rem;
	--vk-legal-shell: min(70rem, 100%);
	--vk-legal-index-col: min(15.5rem, 34vw);
	/* Mismo data URI que --vk-home-pcb-pattern (home.css, .site-front). */
	--vk-legal-pcb-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201440%20220%22%20fill%3D%22none%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22p%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221440%22%20y2%3D%220%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%235b21b6%22%20stop-opacity%3D%220.55%22%2F%3E%3Cstop%20offset%3D%2248%25%22%20stop-color%3D%22%23475569%22%20stop-opacity%3D%220.42%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%230e7490%22%20stop-opacity%3D%220.5%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20stroke%3D%22url%28%23p%29%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M-40%20108h142l38-32h168l22%2022h198l18-18h245l42%2038h210l28-28h247%22%2F%3E%3Cpath%20d%3D%22M0%20132h118l32%2028h152l40-48h175l24%2024h265l-32%2036h188l44-40h224%22%2F%3E%3Cpath%20d%3D%22M60%2088h95l48%2052h128l36-44h155l20%2020h290l-24%2032h175l52-60h206%22%2F%3E%3Cpath%20d%3D%22M-20%20156h200l-28-40h160l55%2055h140l30-35h220l25%2025h310%22%2F%3E%3Cpath%20d%3D%22M320%2072v36l28%2028h160l32-32h200l20%2020h280%22%2F%3E%3Cpath%20d%3D%22M480%20148h100l35-40h130l45%2045h90l25-25h210l38%2038h232%22%2F%3E%3Cpath%20d%3D%22M720%2096h80l40%2040h120l-30%2048h200l35-55h175%22%2F%3E%3Cpath%20d%3D%22M200%20176h150l40-50h220l30%2030h340l-25%2020h185%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22url%28%23p%29%22%3E%3Ccircle%20cx%3D%22102%22%20cy%3D%22108%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%2276%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22370%22%20cy%3D%22108%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22588%22%20cy%3D%2290%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22833%22%20cy%3D%22128%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%221043%22%20cy%3D%22100%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22118%22%20cy%3D%22132%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22302%22%20cy%3D%22160%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22548%22%20cy%3D%22132%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22755%22%20cy%3D%22168%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22980%22%20cy%3D%22104%22%20r%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
	position: relative;
	color: #0f172a;
	background-color: #f0f1f8;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 40%),
		radial-gradient(ellipse 90% 55% at 10% -5%, rgba(124, 58, 237, 0.06) 0%, transparent 55%),
		linear-gradient(180deg, #f3f4fb 0%, #e8eaf4 48%, #f0f1f8 100%);
}

body.vk-legal-static::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: var(--vk-legal-pcb-pattern);
	background-repeat: no-repeat;
	background-position: center 18%;
	background-size: cover;
	opacity: 0.26;
	-webkit-mask-image:
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.98) 0%,
			rgba(0, 0, 0, 0.88) 18%,
			rgba(0, 0, 0, 0.72) 48%,
			rgba(0, 0, 0, 0.52) 78%,
			rgba(0, 0, 0, 0.32) 100%
		),
		linear-gradient(
			to right,
			rgba(0, 0, 0, 1) 0%,
			rgba(0, 0, 0, 0.36) 30%,
			rgba(0, 0, 0, 0.36) 70%,
			rgba(0, 0, 0, 1) 100%
		);
	-webkit-mask-size: 100% 100%, 100% 100%;
	-webkit-mask-repeat: no-repeat, no-repeat;
	-webkit-mask-position: center, center;
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.98) 0%,
			rgba(0, 0, 0, 0.88) 18%,
			rgba(0, 0, 0, 0.72) 48%,
			rgba(0, 0, 0, 0.52) 78%,
			rgba(0, 0, 0, 0.32) 100%
		),
		linear-gradient(
			to right,
			rgba(0, 0, 0, 1) 0%,
			rgba(0, 0, 0, 0.36) 30%,
			rgba(0, 0, 0, 0.36) 70%,
			rgba(0, 0, 0, 1) 100%
		);
	mask-size: 100% 100%, 100% 100%;
	mask-repeat: no-repeat, no-repeat;
	mask-position: center, center;
	mask-composite: intersect;
}

@media (min-width: 48rem) {
	body.vk-legal-static::before {
		opacity: 0.3;
		background-position: center 16%;
	}
}

@media (min-width: 64rem) {
	body.vk-legal-static::before {
		opacity: 0.32;
		background-position: center 14%;
	}
}

/* ——— Shell & hero ——— */
.vk-legal-static__shell.vk-container {
	width: 100%;
	max-width: var(--vk-legal-shell);
	margin-left: auto;
	margin-right: auto;
	padding-top: clamp(2rem, 5.2vw, 3.1rem);
	padding-left: var(--vk-container-pad, clamp(1rem, 4vw, 2rem));
	padding-right: var(--vk-container-pad, clamp(1rem, 4vw, 2rem));
}

.vk-legal-static__main {
	max-width: none;
	margin: 0;
	padding: 0;
}

.vk-legal-static__article {
	margin: 0;
	position: relative;
	max-width: none;
}

/* Hero */
.vk-legal-static__hero {
	position: relative;
	margin-bottom: clamp(0.7rem, 1.8vw, 1.25rem);
	padding: clamp(1.9rem, 4.6vw, 3rem) 0 clamp(1.5rem, 3.8vw, 2.1rem);
	padding-left: clamp(1.2rem, 3.5vw, 1.85rem);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	overflow: visible;
}

.vk-legal-static__hero::before {
	content: "";
	position: absolute;
	left: 0;
	top: clamp(0.5rem, 2vw, 1rem);
	bottom: clamp(0.5rem, 2vw, 1rem);
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(
		185deg,
		var(--vk-legal-accent) 0%,
		#6366f1 45%,
		rgba(14, 165, 233, 0.85) 100%
	);
	box-shadow: 0 0 28px rgba(124, 58, 237, 0.32);
	opacity: 0.95;
}

.vk-legal-static__hero-glow {
	position: absolute;
	inset: -18% -15% auto -12%;
	height: clamp(12rem, 38vw, 18rem);
	pointer-events: none;
	border-radius: 50%;
	background: radial-gradient(
		ellipse 55% 52% at 35% 38%,
		rgba(124, 58, 237, 0.13) 0%,
		rgba(129, 140, 248, 0.07) 42%,
		transparent 68%
	);
	filter: blur(3px);
	opacity: 1;
}

.vk-legal-static__hero-inner {
	position: relative;
	z-index: 1;
	max-width: min(44rem, 100%);
	padding-top: 0.2rem;
}

.vk-legal-static__eyebrow {
	margin: 0 0 1.1rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--vk-legal-accent);
}

.vk-legal-static__title {
	margin: 0;
	font-size: clamp(2.15rem, 5.8vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.06;
	color: #030712;
}

/* Intro highlight (única tarjeta en hero) */
.vk-legal-static__hero-highlight {
	margin-top: clamp(0.7rem, 1.8vw, 1rem);
	padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 1.85rem);
	border-radius: 14px;
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.92) 0%,
		rgba(248, 246, 255, 0.88) 50%,
		rgba(241, 238, 252, 0.82) 100%
	);
	border: 1px solid rgba(124, 58, 237, 0.1);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 10px 36px rgba(91, 46, 255, 0.06);
}

.vk-legal-static__lead {
	margin: 0;
	font-size: clamp(1.09375rem, 2.35vw, 1.25rem);
	line-height: 1.58;
	font-weight: 500;
	color: #475569;
	max-width: var(--vk-legal-read);
}

/* Acentos tipo minicards Nosotros (solo páginas legales; home.css no se encola aquí) */
@keyframes vk-legal-card-shine {
	0%,
	100% {
		opacity: 0.82;
	}

	50% {
		opacity: 1;
	}
}

@keyframes vk-legal-card-bar-pulse {
	0%,
	100% {
		box-shadow: 3px 0 16px rgba(124, 58, 237, 0.32);
	}

	50% {
		box-shadow:
			3px 0 26px rgba(124, 58, 237, 0.52),
			0 0 20px rgba(14, 165, 233, 0.22);
	}
}

/* Cuerpo: columna izquierda (resumen) + contenido — sin enlaces en el resumen */
.vk-legal-static__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.75rem, 4vw, 2.75rem);
	align-items: start;
	padding-bottom: clamp(3rem, 8vw, 5rem);
	overflow-x: hidden;
}

@media (min-width: 52rem) {
	.vk-legal-static__layout--with-sidebar {
		grid-template-columns: var(--vk-legal-index-col) minmax(0, 1fr);
		column-gap: clamp(2.25rem, 5vw, 4rem);
	}
}

/*
 * Índice informativo: misma familia visual que .contact--closing .contact__pitch +
 * .contact__pitch-head + .contact__panel--dark (home.css). Sin sticky ni overflow propios.
 */
.vk-legal-static__index-aside {
	position: relative;
	z-index: 1;
	min-width: 0;
	max-width: min(34rem, 100%);
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

@media (max-width: 51.99rem) {
	.vk-legal-static__index-aside {
		max-width: none;
		padding-bottom: 1rem;
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	}
}

/* = .contact--closing .contact__pitch */
.vk-legal-static__index-card {
	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0;
	gap: 0;
	padding: clamp(0.75rem, 1.8vw, 1.1rem);
	border: none;
	border-radius: 18px;
	background: linear-gradient(
		165deg,
		rgba(252, 251, 255, 0.98) 0%,
		rgba(246, 248, 252, 0.97) 42%,
		rgba(241, 244, 251, 0.96) 100%
	);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.vk-legal-static__index-card::before {
	display: none;
}

.vk-legal-static__index-card::after {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.vk-legal-static__index-card::before {
		filter: none;
		opacity: 0.65;
	}
}

.vk-legal-static__index-card > * {
	position: relative;
	z-index: 2;
}

/* = .contact__pitch-head (cierre) */
.vk-legal-static__index-pitch-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.85rem, 2vw, 1.2rem);
	min-width: 0;
	width: 100%;
	position: relative;
}

@media (min-width: 40rem) {
	.vk-legal-static__index-pitch-head {
		padding-left: clamp(0.9rem, 2.1vw, 1.35rem);
	}

	.vk-legal-static__index-pitch-head::before {
		content: "";
		position: absolute;
		z-index: 1;
		left: 0;
		top: 0.1rem;
		bottom: 0.1rem;
		width: 3px;
		border-radius: 999px;
		background: linear-gradient(180deg, #7c3aed 0%, #4f46e5 44%, #0ea5e9 100%);
		box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
		pointer-events: none;
	}

	.vk-legal-static__index-pitch-head > * {
		position: relative;
		z-index: 2;
	}
}

@media (max-width: 39.99rem) {
	.vk-legal-static__index-pitch-head {
		padding-left: 0;
	}
}

/* = .contact__eyebrow */
.vk-legal-static__index-label {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6d28d9;
}

/* = .contact__panel--dark */
.vk-legal-static__index-panel {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: min(100%, 24.25rem);
	margin: clamp(1.15rem, 2.2vw, 1.75rem) 0 0;
	padding: clamp(1.15rem, 2.8vw, 1.5rem) clamp(1.2rem, 2.8vw, 1.5rem);
	background-color: #0b0a14;
	background-image:
		linear-gradient(155deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
		radial-gradient(ellipse 110% 85% at 0% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 58%),
		radial-gradient(ellipse 90% 70% at 100% 8%, rgba(139, 92, 246, 0.11) 0%, transparent 52%),
		radial-gradient(ellipse 75% 55% at 92% 88%, rgba(14, 165, 233, 0.09) 0%, transparent 48%),
		linear-gradient(168deg, #04020a 0%, #0d0720 42%, #060412 100%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 18px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.04) inset,
		0 2px 8px rgba(0, 0, 0, 0.16),
		0 14px 32px rgba(0, 0, 0, 0.2),
		0 0 42px rgba(124, 58, 237, 0.06);
	isolation: isolate;
}

.vk-legal-static__index-panel::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	border-radius: 18px 0 0 18px;
	background: linear-gradient(
		180deg,
		var(--vk-accent, #0ea5e9) 0%,
		var(--vk-primary, #7c3aed) 50%,
		rgba(91, 46, 255, 0.9) 100%
	);
	box-shadow: 2px 0 10px rgba(124, 58, 237, 0.24);
	z-index: 1;
	pointer-events: none;
}

.vk-legal-static__index-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 52%);
	pointer-events: none;
	z-index: 0;
}

.vk-legal-static__index-panel > * {
	position: relative;
	z-index: 2;
}

/* = .contact__benefits / .contact__benefit (dentro del panel oscuro) */
.vk-legal-static__index-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: clamp(0.55rem, 1.5vw, 0.85rem);
}

.vk-legal-static__index-item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
	color: rgba(248, 250, 252, 0.92);
	cursor: default;
	user-select: none;
	letter-spacing: -0.01em;
}

.vk-legal-static__index-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.12rem;
	color: #7dd3fc;
	transform: translateY(0.03em);
}

.vk-legal-static__index-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.vk-legal-static__index-text {
	flex: 1;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.vk-legal-static__content {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	padding-bottom: 0;
	font-size: 1.03rem;
	line-height: 1.56;
	color: #475569;
}

/* Secciones editoriales base: texto limpio + separadores */
.vk-legal-static__section {
	scroll-margin-top: clamp(5.75rem, 14vw, 7rem);
	position: relative;
	overflow: visible;
	margin: 0;
	padding: clamp(0.46rem, 1.35vw, 0.7rem) 0;
	border: 0;
	border-top: 1px solid rgba(15, 23, 42, 0.1);
	background: transparent;
	box-shadow: none;
}

.vk-legal-static__section + .vk-legal-static__section {
	padding-top: clamp(0.34rem, 1vw, 0.52rem);
}

.vk-legal-static__section::before {
	display: none;
}

.vk-legal-static__section::after {
	display: none;
}

.vk-legal-static__section > * {
	position: relative;
	z-index: 1;
}

.vk-legal-static__content .vk-legal-static__section--stripe {
	margin-left: 0;
	margin-right: 0;
	background: transparent;
}

.vk-legal-static__section--lede {
	padding-top: clamp(1.2rem, 3.2vw, 1.6rem);
}

.vk-legal-static__section--key {
	padding: clamp(0.85rem, 2vw, 1.05rem) clamp(0.9rem, 2vw, 1.1rem);
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 14px;
	background: linear-gradient(170deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 248, 252, 0.86) 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.75) inset,
		0 10px 24px rgba(15, 23, 42, 0.06);
}

.vk-legal-static__section .vk-legal-static__h2 {
	margin: 0 0 0.45rem;
	font-size: clamp(1.08rem, 1.95vw, 1.3rem);
	font-weight: 700;
	letter-spacing: -0.026em;
	line-height: 1.25;
	color: #0f172a;
}

.vk-legal-static__section > .vk-legal-static__h2 + .vk-legal-static__prose {
	margin-top: 0;
}

.vk-legal-static__section .vk-legal-static__prose {
	margin: 0 0 0.4rem;
	max-width: var(--vk-legal-read);
	color: #475569;
}

.vk-legal-static__section--lede .vk-legal-static__prose:first-of-type {
	font-size: clamp(1.06rem, 2vw, 1.14rem);
	color: #334155;
}

.vk-legal-static__prose:last-child {
	margin-bottom: 0;
}

.vk-legal-static__section .vk-legal-static__list {
	margin: 0.35rem 0 0;
	padding: 0 0 0 1.2rem;
	max-width: var(--vk-legal-read);
	list-style: disc;
	color: #475569;
}

.vk-legal-static__section .vk-legal-static__link--mail:not(.vk-legal-static__link--contact-cta) {
	color: var(--vk-primary, #7c3aed);
}

.vk-legal-static__section .vk-legal-static__link--mail:not(.vk-legal-static__link--contact-cta):hover,
.vk-legal-static__section .vk-legal-static__link--mail:not(.vk-legal-static__link--contact-cta):focus-visible {
	color: var(--vk-primary-hover, #6d28d9);
	text-decoration-color: rgba(124, 58, 237, 0.35);
}

.vk-legal-static__list li {
	margin-bottom: 0.2rem;
	padding-left: 0.35rem;
	line-height: 1.45;
}

.vk-legal-static__list li:last-child {
	margin-bottom: 0;
}

/* Links */
.vk-legal-static__link {
	font-weight: 600;
	text-decoration: none;
	text-underline-offset: 0.2em;
	transition:
		color 0.2s ease,
		box-shadow 0.2s ease,
		text-decoration-color 0.2s ease;
	text-decoration-thickness: 1px;
	text-decoration-color: transparent;
}

.vk-legal-static__link--mail {
	color: var(--vk-primary, #7c3aed);
}

.vk-legal-static__link--mail:hover,
.vk-legal-static__link--mail:focus-visible {
	color: var(--vk-primary-hover, #6d28d9);
	text-decoration: underline;
	text-decoration-color: rgba(124, 58, 237, 0.5);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
	border-radius: 3px;
}

.vk-legal-static__link--contact-cta {
	display: inline-block;
	font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
	background-image: linear-gradient(
		120deg,
		#e9d5ff 0%,
		#c4b5fd 35%,
		#7dd3fc 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
	.vk-legal-static__link--contact-cta {
		color: #e9d5ff;
		-webkit-text-fill-color: currentColor;
		background-image: none;
	}
}

.vk-legal-static__link--contact-cta:hover,
.vk-legal-static__link--contact-cta:focus-visible {
	text-decoration: underline;
	text-decoration-color: rgba(196, 181, 253, 0.48);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
	border-radius: 4px;
	outline: none;
}

.vk-legal-static__link--contact-cta:focus-visible {
	outline: 2px solid #a78bfa;
	outline-offset: 3px;
	box-shadow: none;
}

@media (min-width: 48rem) {
	.vk-legal-static__content {
		font-size: 1.0625rem;
		line-height: 1.75;
	}
}

