@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
	box-sizing: border-box;
}

body.legal-page {
	margin: 0;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #f8fafc;
	color: #111827;
	line-height: 1.65;
}

.legal-page .site-header {
	--header-pad-x: clamp(16px, 4vw, 64px);
	align-items: center;
	background: rgba(23, 19, 75, 0.85);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 32px rgba(0,0,0,0.15);
	color: #fff;
	display: flex;
	justify-content: space-between;
	left: 0;
	padding: 12px var(--header-pad-x);
	position: fixed;
	right: 0;
	top: 0;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1000;
	-webkit-backdrop-filter: blur(24px) saturate(1.2);
	backdrop-filter: blur(24px) saturate(1.2);
}

.legal-page .site-header.scrolled {
	background: rgba(15, 13, 46, 0.96);
	box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 12px 40px rgba(0,0,0,0.25);
	padding-bottom: 12px;
	padding-top: 12px;
	-webkit-backdrop-filter: blur(32px) saturate(1.4);
	backdrop-filter: blur(32px) saturate(1.4);
}

.legal-page .logo-link {
	align-items: center;
	display: inline-flex;
	line-height: 0;
	margin-left: calc(var(--header-pad-x) * -1 + 12px);
}

.legal-page .logo {
	display: block;
	filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
	height: auto;
	max-height: none;
	object-fit: contain;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	width: clamp(116px, 11vw, 144px);
}

.legal-page .logo:hover {
	transform: scale(1.03);
}

.legal-page .nav-actions {
	align-items: center;
	display: flex;
	gap: 10px;
}

.legal-page .btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 600;
	gap: 6px;
	justify-content: center;
	letter-spacing: 0.01em;
	line-height: 1;
	min-height: 42px;
	overflow: hidden;
	padding: 0 20px;
	position: relative;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
}

.legal-page .btn::before {
	background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 55%);
	content: "";
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 0.3s ease;
}

.legal-page .btn:hover::before {
	opacity: 1;
}

.legal-page .btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.legal-page .btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
	color: #fff;
	transform: translateY(-1px);
}

.legal-page .btn-primary {
	background: linear-gradient(135deg, #5a54c4 0%, #352f9f 50%, #24206e 100%);
	border-color: transparent;
	box-shadow: 0 4px 16px rgba(53, 47, 159, 0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
	color: #fff;
}

.legal-page .btn-primary:hover {
	background: linear-gradient(135deg, #6366f1 0%, #504bc4 50%, #352f9f 100%);
	box-shadow: 0 8px 28px rgba(53, 47, 159, 0.55), 0 0 0 1px rgba(255,255,255,0.12) inset;
	transform: translateY(-2px);
}

.legal-page .mobile-menu-toggle {
	align-items: center;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 12px;
	color: rgba(255,255,255,0.9);
	cursor: pointer;
	display: none;
	height: 42px;
	justify-content: center;
	transition: all 0.25s ease;
	width: 42px;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.legal-page .mobile-menu-toggle:hover {
	background: rgba(255,255,255,0.12);
	border-color: rgba(255,255,255,0.25);
	color: #fff;
}

.legal-page .mobile-drawer-overlay {
	background: rgba(8, 6, 28, 0.85);
	inset: 0;
	opacity: 0;
	position: fixed;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	visibility: hidden;
	z-index: 999;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.legal-page .mobile-drawer-overlay.open {
	opacity: 1;
	visibility: visible;
}

.legal-page .mobile-drawer {
	background: linear-gradient(180deg, #17134b 0%, #0f0d2e 50%, #08061c 100%);
	border-left: 1px solid rgba(255,255,255,0.08);
	bottom: 0;
	box-shadow: -30px 0 80px rgba(0,0,0,0.6);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 24px;
	position: fixed;
	right: 0;
	top: 0;
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	width: min(340px, 88vw);
	z-index: 1001;
}

.legal-page .mobile-drawer.open {
	transform: translateX(0);
}

.legal-page .mobile-drawer-header {
	align-items: center;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 18px;
}

.legal-page .mobile-drawer-header span {
	color: rgba(255,255,255,0.4);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.legal-page .mobile-drawer-close {
	align-items: center;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 10px;
	color: rgba(255,255,255,0.7);
	cursor: pointer;
	display: flex;
	height: 36px;
	justify-content: center;
	transition: all 0.2s ease;
	width: 36px;
}

.legal-page .mobile-drawer-close:hover {
	background: rgba(255,255,255,0.12);
	border-color: rgba(255,255,255,0.2);
	color: #fff;
}

.legal-page .mobile-drawer .btn {
	border-radius: 12px;
	justify-content: center;
	min-height: 48px;
	width: 100%;
}

.legal-page .mobile-drawer-footer {
	color: rgba(255,255,255,0.25);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	margin-top: auto;
	padding-top: 24px;
	text-align: center;
}

.legal-page main {
	max-width: 920px;
	margin: 0 auto;
	padding: 120px 20px 64px;
}

.legal-page .legal-intro {
	margin-bottom: 24px;
}

.legal-page .page-kicker {
	margin: 0 0 10px;
	color: #342f9f;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.legal-page h1 {
	color: #17134b;
	font-size: clamp(2rem, 5vw, 3.15rem);
	line-height: 1.08;
	margin: 0 0 10px;
	letter-spacing: 0;
}

.legal-page .updated {
	color: #64748b;
	margin: 0 0 12px;
	font-size: 0.96rem;
}

.legal-page .page-summary {
	max-width: 720px;
	color: #475569;
	margin: 0;
	font-size: 1rem;
}

.legal-page section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 19px 22px;
	margin-bottom: 12px;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.045);
}

.legal-page h2 {
	color: #17134b;
	margin: 0 0 7px;
	font-size: 1.08rem;
	line-height: 1.35;
}

.legal-page p {
	margin: 0 0 10px;
	color: #475569;
}

.legal-page section p:last-child,
.legal-page section ul:last-child {
	margin-bottom: 0;
}

.legal-page ul {
	margin: 0;
	color: #475569;
	padding-left: 1.15rem;
}

.legal-page li {
	margin: 0.2rem 0;
}

.legal-page .footer {
	border-top: 1px solid #e5e7eb;
	padding: 22px 20px;
	text-align: center;
	color: #64748b;
	background: #fff;
	font-size: 0.92rem;
}

@media (max-width: 820px) {
	.legal-page .site-header {
		--header-pad-x: 12px;
		padding: 10px var(--header-pad-x);
	}

	.legal-page .logo {
		max-height: none;
		width: 104px;
	}

	.legal-page .nav-actions {
		display: none;
	}

	.legal-page .mobile-menu-toggle {
		display: flex;
	}

	.legal-page main {
		padding: 96px 16px 52px;
	}

	.legal-page .legal-intro {
		margin-bottom: 20px;
	}

	.legal-page h1 {
		font-size: 2rem;
	}

	.legal-page .page-summary {
		font-size: 0.93rem;
	}

	.legal-page section {
		padding: 17px 16px;
		border-radius: 10px;
		margin-bottom: 10px;
	}

	.legal-page h2 {
		font-size: 1rem;
	}

	.legal-page p,
	.legal-page li {
		font-size: 0.93rem;
	}
}

@media (max-width: 380px) {
	.legal-page .logo {
		width: clamp(90px, 30vw, 104px);
		max-height: none;
	}
}
