.terms-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 32px clamp(20px, 5vw, 80px) 0;
	background: #fff;
}

.terms-header {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: -32px;
	margin-left: calc(-1 * clamp(20px, 5vw, 80px));
	margin-right: calc(-1 * clamp(20px, 5vw, 80px));
	margin-bottom: clamp(24px, 4vw, 48px);
	padding: 88px clamp(20px, 5vw, 80px) 0;
	background: #fff;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% + 2 * clamp(20px, 5vw, 80px));
	margin-left: calc(-1 * clamp(20px, 5vw, 80px));
	margin-right: calc(-1 * clamp(20px, 5vw, 80px));
	padding: 12px 18px;
	border: 1px solid rgba(7, 21, 38, 0.06);
	border-radius: 0;
	backdrop-filter: blur(16px);
	background: rgba(255, 255, 255, 0.9);
	position: sticky;
	top: 0;
	z-index: 2;
	gap: 24px;
}

.logo {
	display: flex;
	align-items: center;
	font-weight: 700;
	font-size: 1.1rem;
	gap: 8px;
	color: #111827;
}

.logo-text {
	height: 18px;
	width: auto;
	display: block;
}

.nav-links {
	display: flex;
	gap: 16px;
	font-size: 1.05rem;
	color: #475467;
}

.nav-links a {
	color: inherit;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

.nav-links a:hover {
	background: rgba(100, 74, 255, 0.1);
	color: #111827;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	border: 1px solid rgba(7, 21, 38, 0.16);
	background: rgba(255, 255, 255, 0.6);
	color: inherit;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-menu:hover {
	background: rgba(100, 74, 255, 0.08);
}

.nav-menu:focus-visible {
	outline: 2px solid #644aff;
	outline-offset: 2px;
}

.nav-menu-bar {
	position: relative;
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.nav-menu-bar::before,
.nav-menu-bar::after {
	content: '';
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.nav-menu-bar::before {
	top: -6px;
}

.nav-menu-bar::after {
	top: 6px;
}

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	justify-content: flex-end;
}

.mobile-menu-backdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(6px);
	cursor: pointer;
}

.mobile-menu-panel {
	position: relative;
	width: min(82vw, 420px);
	height: 100%;
	background: #fff;
	border-left: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: -24px 0 40px -24px rgba(15, 23, 42, 0.35);
	display: flex;
	flex-direction: column;
	animation: mobileMenuIn 0.24s ease;
}

.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mobile-menu-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.mobile-menu-close {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: transparent;
	cursor: pointer;
}

.mobile-menu-close span {
	position: absolute;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: #111827;
}

.mobile-menu-close span:first-child {
	transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
	transform: rotate(-45deg);
}

.mobile-menu-links {
	display: flex;
	flex-direction: column;
}

.mobile-menu-links a {
	display: flex;
	align-items: center;
	padding: 18px 20px;
	font-size: 1.1rem;
	color: #111827;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	transition: background 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

.mobile-menu-links a:hover {
	background: rgba(100, 74, 255, 0.08);
	color: #1f2937;
}

.mobile-menu-cta {
	margin-top: auto;
	padding: 20px;
}

.mobile-menu-cta .primary-btn {
	width: 100%;
	justify-content: center;
}

@keyframes mobileMenuIn {
	from {
		transform: translateX(10%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mobile-menu-panel {
		animation: none;
	}
}

.text-link {
	color: #111827;
	font-weight: 500;
	text-decoration: none;
}

.primary-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-weight: 600;
	padding: 14px 26px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	background: linear-gradient(135deg, #644aff, #638df5);
	color: #fff;
	box-shadow: 0 16px 30px rgba(99, 141, 245, 0.35);
	position: relative;
	overflow: hidden;
	text-decoration: none;
}

.primary-btn::before {
	content: '';
	position: absolute;
	top: -60%;
	left: -35%;
	width: 40%;
	height: 220%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.7), transparent);
	transform: rotate(18deg);
	animation: shineSweep 4s ease-in-out infinite;
	pointer-events: none;
}

.primary-btn.ghost {
	box-shadow: none;
}

.primary-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 35px rgba(99, 141, 245, 0.45);
}

.ghost {
	background: rgba(100, 74, 255, 0.1);
	color: #1f2937;
	box-shadow: none;
}

@keyframes shineSweep {
	0% {
		transform: translateX(-120%) rotate(18deg);
		opacity: 0;
	}

	30% {
		opacity: 1;
	}

	60% {
		transform: translateX(260%) rotate(18deg);
		opacity: 0;
	}

	100% {
		transform: translateX(260%) rotate(18deg);
		opacity: 0;
	}
}

.terms-content {
	flex: 1;
	padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 5vw, 80px);
	display: flex;
	justify-content: center;
}

.terms-card {
	width: 100%;
	max-width: 860px;
}

.terms-card h1 {
	margin: 0 0 8px;
	font-size: clamp(2rem, 3vw, 2.6rem);
	color: #0f172a;
}

.terms-updated {
	margin: 0 0 24px;
	color: #4b5563;
	font-size: 0.95rem;
}

.terms-list {
	margin: 0;
	padding-left: 20px;
	color: #111827;
}

.terms-list > li {
	padding-left: 6px;
}

.terms-list > li + li {
	margin-top: 20px;
}

.terms-list h2 {
	margin: 0 0 8px;
	font-size: 1.2rem;
	color: #111827;
}

.terms-list p {
	margin: 0;
	color: #1f2937;
	line-height: 1.6;
}

.terms-sublist {
	margin: 12px 0 0;
	padding-left: 20px;
	color: #1f2937;
}

.terms-sublist > li + li {
	margin-top: 8px;
}

@media (max-width: 900px) {
	.nav-links {
		display: none;
	}
}

@media (max-width: 900px) {
	.terms-shell {
		padding: 20px;
	}

	.terms-header {
		margin-top: -20px;
		margin-left: -20px;
		margin-right: -20px;
		padding: 72px 20px 0;
	}

	.nav {
		flex-direction: row;
		justify-content: space-between;
		min-height: 64px;
		border-radius: 0;
		padding: 12px 16px;
		background: rgba(255, 255, 255, 0.95);
		border: none;
		border-bottom: 1px solid rgba(7, 21, 38, 0.08);
		color: #111827;
		box-shadow: 0 18px 30px -26px rgba(15, 23, 42, 0.4);
		top: 0;
	}

	.nav-actions {
		display: none;
	}

	.nav-menu {
		display: inline-flex;
	}

	.logo-text {
		height: 20px;
	}

	.mobile-menu-panel {
		width: 100%;
	}

	.primary-btn {
		width: 100%;
		justify-content: center;
	}
}
