@import './header.css';
@import './footer.css';

:root {
	--teal: #14b8a6;
	--aqua: #5eead4;
	--indigo-deep: #1e1b4b;
	--indigo-mid: #3730a3;
	--sign-purple: #6d28d9;
	--sign-violet: #8b5cf6;
	--time-blue: #1d4ed8;
	--time-sky: #3b82f6;

	--bg: #f8fafc;
	--white: #ffffff;
	--text: #0f172a;
	--text-2: #475569;
	--text-soft: #94a3b8;
	--line: #e2e8f0;

	--font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--container: 1180px;
	--radius: 24px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--shadow: 0 24px 70px -28px rgba(15, 23, 42, 0.22);
	--shadow-soft: 0 16px 40px -24px rgba(15, 23, 42, 0.18);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(248, 250, 252, 0.78);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.nav-inner {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.logo-mark {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--teal), var(--indigo-mid));
	box-shadow: 0 10px 24px -10px rgba(20, 184, 166, 0.7);
	position: relative;
}

.logo-mark::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 5px;
	background: radial-gradient(circle at 30% 30%, var(--aqua), transparent 65%);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 22px;
}

.nav-links a {
	color: var(--text-2);
	font-size: 14px;
	font-weight: 600;
	transition: color 0.2s var(--ease);
}

.nav-links a:hover {
	color: var(--text);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition:
		transform 0.25s var(--ease),
		box-shadow 0.25s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	color: var(--white);
	background: linear-gradient(135deg, var(--teal), var(--indigo-mid));
	box-shadow: 0 12px 30px -14px rgba(20, 184, 166, 0.7);
}

.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 84px 0 72px;
}

.hero::before {
	content: "";
	position: absolute;
	inset: -35% -10% auto -10%;
	height: 95%;
	background:
		radial-gradient(55% 50% at 20% 35%, rgba(94, 234, 212, 0.28), transparent 62%),
		radial-gradient(45% 50% at 80% 20%, rgba(139, 92, 246, 0.22), transparent 65%);
	filter: blur(42px);
	z-index: -1;
}

.hero-card {
	position: relative;
	border: 1px solid rgba(226, 232, 240, 0.86);
	background:
		radial-gradient(70% 100% at 100% 0%, rgba(94, 234, 212, 0.18), transparent 55%),
		radial-gradient(70% 100% at 0% 100%, rgba(139, 92, 246, 0.14), transparent 58%), rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 32px;
	padding: 48px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.hero-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(circle at 72% 30%, black 18%, transparent 70%);
	-webkit-mask-image: radial-gradient(circle at 72% 30%, black 18%, transparent 70%);
	pointer-events: none;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--teal);
	font-weight: 700;
	margin: 0 0 16px;
}

.hero h1 {
	max-width: 860px;
	margin: 0;
	font-size: clamp(36px, 5vw, 66px);
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-weight: 800;
}

.hero h1 span {
	background: linear-gradient(120deg, var(--teal), var(--time-sky), var(--sign-violet));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-sub {
	max-width: 760px;
	margin: 22px 0 0;
	color: var(--text-2);
	font-size: clamp(16px, 1.4vw, 19px);
}

.hero-meta {
	margin-top: 34px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: rgba(255, 255, 255, 0.72);
	color: var(--text-2);
	border-radius: 999px;
	padding: 9px 13px;
	font-size: 13px;
	font-weight: 600;
}

.meta-chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.privacy {
	padding: 32px 0 96px;
}

.privacy-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
}

.toc {
	position: sticky;
	top: 96px;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: var(--shadow-soft);
	padding: 18px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.toc-title {
	margin: 0 0 12px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-soft);
	font-weight: 700;
}

.toc-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.toc-nav a {
	position: relative;
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--text-2);
	transition:
		background 0.22s var(--ease),
		color 0.22s var(--ease),
		transform 0.22s var(--ease);
}

.toc-nav a:hover,
.toc-nav a.is-active {
	background: rgba(94, 234, 212, 0.14);
	color: var(--text);
	transform: translateX(2px);
}

.toc-note {
	margin: 16px 0 0;
	padding: 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(94, 234, 212, 0.13), rgba(139, 92, 246, 0.09));
	color: var(--text-2);
	font-size: 12.5px;
	line-height: 1.5;
}

.privacy-content {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.privacy-section {
	scroll-margin-top: 110px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 16px 46px -30px rgba(15, 23, 42, 0.22);
}

.privacy-section h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.privacy-section h2::before {
	content: "";
	width: 10px;
	height: 30px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--teal), var(--sign-violet));
	flex: none;
}

.privacy-section p {
	margin: 0 0 16px;
	color: var(--text-2);
}

.privacy-section p:last-child {
	margin-bottom: 0;
}

.privacy-section ul {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.privacy-section li {
	position: relative;
	padding-left: 28px;
	color: var(--text-2);
}

.privacy-section li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.52em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6.4 11.2 3.3 8.1l1.1-1.1 2 2 5.1-5.1 1.1 1.1z'/></svg>")
			center / 12px no-repeat,
		linear-gradient(135deg, #14b8a6, #8b5cf6);
}

.privacy-section a {
	color: var(--indigo-mid);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.highlight-box {
	margin-top: 18px;
	padding: 18px 20px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(139, 92, 246, 0.08));
	border: 1px solid rgba(226, 232, 240, 0.9);
	color: var(--text-2);
}

.responsable-card {
	background:
		radial-gradient(65% 120% at 100% 0%, rgba(94, 234, 212, 0.14), transparent 55%),
		radial-gradient(65% 120% at 0% 100%, rgba(139, 92, 246, 0.12), transparent 55%), var(--white);
}

.responsable-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.responsable-item {
	padding: 16px;
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: rgba(255, 255, 255, 0.74);
	border-radius: 16px;
}

.responsable-label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-soft);
	font-weight: 700;
}

.responsable-value {
	color: var(--text);
	font-weight: 650;
	font-size: 14px;
}

.footer {
	padding: 42px 0;
	border-top: 1px solid var(--line);
	background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	color: var(--text-soft);
	font-size: 13px;
	flex-wrap: wrap;
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.7s var(--ease),
		transform 0.7s var(--ease);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

@media (max-width: 900px) {
	.nav-links {
		display: none;
	}

	.privacy-grid {
		grid-template-columns: 1fr;
	}

	.toc {
		position: relative;
		top: auto;
		overflow-x: auto;
		padding: 14px;
	}

	.toc-nav {
		flex-direction: row;
		gap: 8px;
		min-width: max-content;
	}

	.toc-nav a {
		white-space: nowrap;
		border: 1px solid rgba(226, 232, 240, 0.8);
	}

	.toc-note {
		display: none;
	}

	.hero-card {
		padding: 34px 26px;
		border-radius: 26px;
	}

	.privacy-section {
		padding: 26px 22px;
	}

	.responsable-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.container {
		padding: 0 18px;
	}

	.nav-inner {
		height: 66px;
	}

	.nav-cta {
		display: none;
	}

	.hero {
		padding: 52px 0 46px;
	}

	.hero-meta {
		gap: 8px;
	}

	.meta-chip {
		width: 100%;
	}

	.privacy {
		padding-bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}
