/* ==========================================================================
   V2 Theme - Legal Pages Stylesheet (Aviso Legal, Privacidad, Cookies)
   ========================================================================== */

.v2i-legal-hero {
	background: linear-gradient(135deg, #0b1e33 0%, #10243a 50%, #0d2847 100%);
	color: #ffffff;
	padding: 130px 0 60px;
	position: relative;
	overflow: hidden;
}

.v2i-legal-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(1, 105, 250, 0.15) 0%, transparent 70%);
	pointer-events: none;
	border-radius: 50%;
}

.v2i-legal-hero__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.v2i-legal-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #93c5fd;
	margin-bottom: 16px;
}

.v2i-legal-hero__badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #38bdf8;
	box-shadow: 0 0 8px #38bdf8;
}

.v2i-legal-hero h1 {
	font-family: var(--v2-font-heading, 'Syne', sans-serif) !important;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.v2i-legal-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	align-items: center;
}

.v2i-legal-hero__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.v2i-legal-hero__meta-item svg {
	width: 16px;
	height: 16px;
	stroke: #38bdf8;
}

/* ==========================================================================
   Main Legal Content & Sidebar Layout
   ========================================================================== */

.v2-legal-section {
	padding: 60px 0 100px;
	background: #f7f6f2;
}

.v2-legal-grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}

/* Legal Content Card */
.v2-legal-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: clamp(28px, 4vw, 56px);
	box-shadow: 0 10px 30px -10px rgba(15, 35, 60, 0.06);
}

.v2-legal-body {
	color: #334155;
	font-size: 1.02rem;
	line-height: 1.8;
	font-family: var(--v2-font-primary, 'Inter', sans-serif);
}

.v2-legal-body h1,
.v2-legal-body h2,
.v2-legal-body h3,
.v2-legal-body h4 {
	font-family: var(--v2-font-heading, 'Syne', sans-serif) !important;
	color: #0f172a;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-top: 2rem;
	margin-bottom: 0.8rem;
}

.v2-legal-body h1 {
	font-size: 1.8rem;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 12px;
	margin-top: 0.5rem;
}

.v2-legal-body h2 {
	font-size: 1.45rem;
	color: #0b2545;
	position: relative;
	padding-left: 14px;
}

.v2-legal-body h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	background: #0169fa;
	border-radius: 4px;
}

.v2-legal-body h3 {
	font-size: 1.2rem;
	color: #1e293b;
}

.v2-legal-body p {
	margin: 0 0 1.3rem;
}

.v2-legal-body a {
	color: #0169fa;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.v2-legal-body a:hover {
	color: #004ecc;
}

.v2-legal-body ul,
.v2-legal-body ol {
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
}

.v2-legal-body li {
	margin-bottom: 0.6rem;
}

.v2-legal-body strong,
.v2-legal-body b {
	color: #0f172a;
	font-weight: 600;
}

.v2-legal-body hr {
	border: 0;
	height: 1px;
	background: #e2e8f0;
	margin: 2.2rem 0;
}

.v2-legal-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.95rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.v2-legal-body th,
.v2-legal-body td {
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	text-align: left;
}

.v2-legal-body th {
	background: #f8fafc;
	font-weight: 700;
	color: #0f172a;
}

.v2-legal-body tr:nth-child(even) {
	background: #fcfdfe;
}

/* Complianz Cookie Notice in page styling */
.cmplz-document {
	margin-top: 1.5rem;
}

.cmplz-document h2,
.cmplz-document h3 {
	margin-top: 1.8rem;
}

/* ==========================================================================
   Sidebar: Legal Navigation & Responsible Info
   ========================================================================== */

.v2-legal-sidebar {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.v2-legal-widget {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 16px rgba(15, 35, 60, 0.04);
}

.v2-legal-widget__title {
	font-family: var(--v2-font-heading, 'Syne', sans-serif) !important;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.v2-legal-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.v2-legal-nav__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 10px;
	color: #334155;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	background: #f8fafc;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.v2-legal-nav__item:hover {
	background: #f1f5f9;
	color: #0169fa;
	transform: translateX(4px);
}

.v2-legal-nav__item.is-active {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #0169fa;
	font-weight: 700;
}

.v2-legal-nav__item svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	transition: transform 0.2s ease;
}

.v2-legal-nav__item:hover svg {
	transform: translateX(3px);
}

/* Info Box */
.v2-legal-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.88rem;
	color: #475569;
}

.v2-legal-info-list li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 10px;
	margin: 0;
}

.v2-legal-info-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.v2-legal-info-list strong {
	color: #0f172a;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.v2-legal-info-list a {
	color: #0169fa;
	text-decoration: none;
	word-break: break-all;
}

.v2-legal-info-list a:hover {
	text-decoration: underline;
}

/* Help Box */
.v2-legal-help {
	background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
	border: 1px solid #dbeafe;
	border-radius: 16px;
	padding: 24px;
}

.v2-legal-help h4 {
	font-family: var(--v2-font-heading, 'Syne', sans-serif) !important;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.v2-legal-help p {
	font-size: 0.86rem;
	color: #475569;
	margin: 0 0 14px;
	line-height: 1.5;
}

.v2-legal-help__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: #0169fa;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.v2-legal-help__btn:hover {
	background: #004ecc;
}

/* Responsive */
@media (max-width: 991px) {
	.v2-legal-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
	.v2-legal-sidebar {
		position: static;
		order: 2;
	}
	
	.v2i-legal-hero {
		padding: 110px 0 44px;
	}
}

@media (max-width: 640px) {
	.v2-legal-card {
		padding: 24px 18px;
		border-radius: 14px;
	}
	
	.v2-legal-body {
		font-size: 0.96rem;
	}
}
