/**
 * =============================================================================
 * UBICACIÓN:		/assets/css/pages/legal.css
 * ARCHIVO:		legal.css
 * DESCRIPCIÓN TÉCNICA:	Estilos públicos para páginas legales, membership
 *			y error 404, con enfoque limpio, legible y consistente
 *			con la parte pública de MERCAFUT.
 * DESCRIPCIÓN FÁCIL:	Diseña las páginas legales y algunas páginas públicas
 *			informativas para que se vean profesionales y claras.
 * =============================================================================
 * ÍNDICE
 * 1. Base
 * 2. Contenedor y hero
 * 3. Secciones y tipografía
 * 4. Listas, notas y tarjetas
 * 5. Acciones y botones
 * 6. Variantes
 * 7. Responsive
 * =============================================================================
 */

/* =============================================================================
 * 1. BASE
 * ============================================================================= */
.legal-page {
	background:
		linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
	color: #102033;
	min-height: calc(100vh - 80px);
	padding: 2.25rem 0 4rem;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
	box-sizing: border-box;
}

.legal-container {
	margin: 0 auto;
	max-width: 980px;
	padding: 0 1rem;
}

/* =============================================================================
 * 2. CONTENEDOR Y HERO
 * ============================================================================= */
.legal-hero {
	background:
		linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	border: 1px solid rgba(0, 33, 113, 0.08);
	border-radius: 28px;
	box-shadow:
		0 20px 48px rgba(15, 23, 42, 0.07),
		0 8px 20px rgba(0, 33, 113, 0.04);
	margin-bottom: 1.5rem;
	padding: 1.5rem 1.15rem;
	text-align: left;
}

.legal-kicker {
	color: #0f5b8e;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.legal-hero h1 {
	color: #0f172a;
	font-size: clamp(1.9rem, 5vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.02;
	margin: 0 0 0.9rem;
	text-wrap: balance;
}

.legal-lead {
	color: #425466;
	font-size: 1rem;
	line-height: 1.72;
	margin: 0;
	max-width: 70ch;
}

/* =============================================================================
 * 3. SECCIONES Y TIPOGRAFÍA
 * ============================================================================= */
.legal-section {
	background: #ffffff;
	border: 1px solid rgba(0, 33, 113, 0.08);
	border-radius: 24px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
	margin-top: 1rem;
	padding: 1.2rem 1rem;
}

.legal-section h2,
.legal-card h2,
.legal-note h2 {
	color: #0f172a;
	font-size: clamp(1.2rem, 3vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.8rem;
	text-wrap: balance;
}

.legal-section p,
.legal-card p,
.legal-note p {
	color: #425466;
	font-size: 1rem;
	line-height: 1.75;
	margin: 0 0 0.95rem;
}

.legal-section p:last-child,
.legal-card p:last-child,
.legal-note p:last-child {
	margin-bottom: 0;
}

.legal-section a,
.legal-card a,
.legal-note a {
	color: #0f5b8e;
	font-weight: 700;
	text-decoration: none;
}

.legal-section a:hover,
.legal-card a:hover,
.legal-note a:hover {
	text-decoration: underline;
}

/* =============================================================================
 * 4. LISTAS, NOTAS Y TARJETAS
 * ============================================================================= */
.legal-list {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding-left: 1.2rem;
}

.legal-list li {
	color: #425466;
	line-height: 1.7;
}

.legal-list li::marker {
	color: #0f5b8e;
}

.legal-cards {
	display: grid;
	gap: 1rem;
}

.legal-card {
	background: #ffffff;
	border: 1px solid rgba(0, 33, 113, 0.08);
	border-radius: 24px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
	padding: 1.2rem 1rem;
}

.legal-note {
	background:
		linear-gradient(135deg, #0f5b8e 0%, #0c4a71 100%);
	border-radius: 24px;
	box-shadow: 0 18px 36px rgba(15, 91, 142, 0.18);
	padding: 1.25rem 1rem;
}

.legal-note h2,
.legal-note p {
	color: #ffffff;
}

/* =============================================================================
 * 5. ACCIONES Y BOTONES
 * ============================================================================= */
.legal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.25rem;
}

.legal-button {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 800;
	justify-content: center;
	min-height: 48px;
	padding: 0.82rem 1.35rem;
	text-decoration: none;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease;
}

.legal-button:hover {
	transform: translateY(-1px);
}

.legal-button--primary {
	background: #0f5b8e;
	border: 1px solid #0f5b8e;
	box-shadow: 0 12px 26px rgba(15, 91, 142, 0.18);
	color: #ffffff;
}

.legal-button--primary:hover {
	background: #0c4a71;
	border-color: #0c4a71;
	color: #ffffff;
}

.legal-button--secondary {
	background: #ffffff;
	border: 1px solid rgba(0, 33, 113, 0.12);
	color: #102033;
}

.legal-button--secondary:hover {
	background: #f5f8fc;
	color: #102033;
}

/* =============================================================================
 * 6. VARIANTES
 * ============================================================================= */
.legal-page--membership .legal-hero {
	margin-bottom: 1.25rem;
}

.legal-cards--plans {
	grid-template-columns: 1fr;
}

.legal-page--error .legal-container {
	max-width: 820px;
}

.legal-hero--error {
	text-align: center;
}

/* =============================================================================
 * 7. RESPONSIVE
 * ============================================================================= */
@media (min-width: 768px) {
	.legal-page {
		padding: 2.8rem 0 4.5rem;
	}

	.legal-container {
		padding: 0 1.5rem;
	}

	.legal-hero {
		padding: 2rem 1.6rem;
		border-radius: 32px;
	}

	.legal-section,
	.legal-card {
		padding: 1.45rem 1.35rem;
	}

	.legal-note {
		padding: 1.5rem 1.35rem;
	}

	.legal-cards--plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.legal-page {
		padding: 3.2rem 0 5rem;
	}

	.legal-container {
		padding: 0 2rem;
	}

	.legal-hero {
		padding: 2.3rem 2rem;
	}

	.legal-section,
	.legal-card {
		padding: 1.6rem 1.5rem;
	}

	.legal-note {
		padding: 1.7rem 1.5rem;
	}

	.legal-cards--plans {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}