:root {
	color-scheme: dark;
	--ink: #070806;
	--ink-2: #0d100d;
	--ink-3: #151811;
	--cream: #f8f1df;
	--muted: #b9b29c;
	--soft: #ded2ad;
	--line: rgba(248, 241, 223, 0.14);
	--line-strong: rgba(248, 241, 223, 0.28);
	--canary: #ffd35a;
	--green: #77e6aa;
	--radius: 8px;
	--max: 1120px;
	--header: 76px;
	font-family: Aptos, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
	font-size: 16px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background:
		linear-gradient(180deg, rgba(255, 211, 90, 0.07), transparent 24rem),
		var(--ink);
	color: var(--cream);
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	content: "";
	background-image:
		linear-gradient(rgba(248, 241, 223, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(248, 241, 223, 0.028) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
	color: inherit;
	text-decoration: none;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 0.75rem 1rem;
	border-radius: var(--radius);
	background: var(--cream);
	color: var(--ink);
	transform: translateY(-140%);
	transition: transform 160ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
	height: var(--header);
	border-bottom: 1px solid rgba(248, 241, 223, 0.1);
	background: rgba(7, 8, 6, 0.78);
	backdrop-filter: blur(18px);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(var(--max), calc(100% - 36px));
	height: 100%;
	margin: 0 auto;
	gap: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 760;
	letter-spacing: 0;
}

.brand-mark {
	position: relative;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 211, 90, 0.36);
	border-radius: 50%;
	background:
		linear-gradient(135deg, rgba(255, 211, 90, 0.95), rgba(119, 230, 170, 0.68)),
		#ffd35a;
	box-shadow: 0 0 34px rgba(255, 211, 90, 0.24);
}

.brand-mark::before,
.brand-mark::after {
	position: absolute;
	content: "";
	background: var(--ink);
}

.brand-mark::before {
	top: 9px;
	left: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
}

.brand-mark::after {
	right: 6px;
	bottom: 8px;
	width: 13px;
	height: 2px;
	border-radius: 999px;
	transform: rotate(-32deg);
}

.nav-links,
.nav-actions {
	display: flex;
	align-items: center;
	gap: clamp(0.8rem, 2.4vw, 1.8rem);
	color: rgba(248, 241, 223, 0.72);
	font-size: 0.9rem;
}

.nav-links a,
.footer-links a,
.legal-index a,
.legal-body a {
	transition:
		color 180ms ease,
		border-color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.legal-index a:hover,
.legal-body a:hover {
	color: var(--cream);
}

.cta,
.ghost-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 1rem;
	border-radius: var(--radius);
	font-size: 0.92rem;
	font-weight: 720;
	white-space: nowrap;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		background 180ms ease,
		color 180ms ease;
}

.cta {
	border: 1px solid rgba(255, 211, 90, 0.64);
	background: var(--canary);
	color: #1a1404;
	box-shadow:
		0 12px 36px rgba(255, 211, 90, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ghost-cta {
	border: 1px solid rgba(248, 241, 223, 0.16);
	background: rgba(248, 241, 223, 0.05);
	color: var(--cream);
}

.cta:hover,
.ghost-cta:hover {
	transform: translateY(-2px);
}

.legal-hero {
	padding: calc(var(--header) + clamp(4rem, 9vw, 7rem)) 0 clamp(2.8rem, 6vw, 5rem);
	border-bottom: 1px solid var(--line);
}

.legal-hero-inner,
.legal-layout,
.footer-inner {
	width: min(var(--max), calc(100% - 36px));
	margin: 0 auto;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.2rem;
	color: var(--soft);
	font-size: 0.78rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	content: "";
}

h1,
h2,
h3,
p {
	margin: 0;
}

h1 {
	max-width: 940px;
	font-size: clamp(3.4rem, 9vw, 7.8rem);
	line-height: 0.9;
	letter-spacing: 0;
}

.legal-intro {
	max-width: 760px;
	margin-top: 1.35rem;
	color: rgba(248, 241, 223, 0.72);
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.65;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.8rem;
	color: rgba(248, 241, 223, 0.62);
	font-size: 0.95rem;
}

.meta-row span {
	padding: 0.45rem 0.7rem;
	border: 1px solid rgba(248, 241, 223, 0.13);
	border-radius: 999px;
	background: rgba(248, 241, 223, 0.04);
}

.legal-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem);
	padding: clamp(2.8rem, 7vw, 5.5rem) 0;
}

.legal-index {
	position: sticky;
	top: calc(var(--header) + 24px);
	align-self: start;
	padding: 1rem 0 0;
	color: rgba(248, 241, 223, 0.62);
}

.legal-index h2 {
	margin-bottom: 1rem;
	color: var(--cream);
	font-size: 0.82rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.legal-index ol {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legal-index a {
	border-bottom: 1px solid transparent;
}

.legal-body {
	max-width: 780px;
}

.notice {
	margin-bottom: 2.4rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(255, 211, 90, 0.2);
	border-radius: var(--radius);
	background: rgba(255, 211, 90, 0.06);
	color: rgba(248, 241, 223, 0.78);
	line-height: 1.65;
}

.legal-section {
	padding: 2rem 0;
	border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.legal-section h2 {
	margin-bottom: 1rem;
	font-size: clamp(1.55rem, 3vw, 2.35rem);
	line-height: 1.08;
}

.legal-section h3 {
	margin: 1.35rem 0 0.45rem;
	color: var(--soft);
	font-size: 1rem;
	line-height: 1.35;
}

.legal-section p,
.legal-section li {
	color: rgba(248, 241, 223, 0.72);
	line-height: 1.74;
}

.legal-section p + p {
	margin-top: 0.9rem;
}

.legal-section ul {
	display: grid;
	gap: 0.55rem;
	margin: 0.75rem 0 0;
	padding-left: 1.1rem;
}

.legal-body a {
	color: var(--soft);
	border-bottom: 1px solid rgba(222, 210, 173, 0.32);
}

.footer {
	padding: 2rem 0;
	border-top: 1px solid var(--line);
	background: #050604;
	color: rgba(248, 241, 223, 0.52);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

@media (max-width: 820px) {
	:root {
		--header: 68px;
	}

	.site-header {
		height: auto;
		min-height: var(--header);
	}

	.nav,
	.legal-hero-inner,
	.legal-layout,
	.footer-inner {
		width: min(100% - 28px, var(--max));
	}

	.nav-links,
	.nav-actions .ghost-cta {
		display: none;
	}

	.nav-actions .cta {
		min-height: 38px;
		padding: 0 0.8rem;
		font-size: 0.86rem;
	}

	h1 {
		font-size: clamp(3rem, 14vw, 4.8rem);
	}

	.legal-layout {
		grid-template-columns: 1fr;
	}

	.legal-index {
		position: static;
		padding: 0 0 1rem;
		border-bottom: 1px solid var(--line);
	}

	.legal-index ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.legal-index ol {
		grid-template-columns: 1fr;
	}

	.brand span {
		max-width: 116px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
	}
}
