/* Legal documents — Etched-style reading layout, white header, WYODYNAMICS footer. */

html:has(body.legal-doc),
body.legal-doc {
	height: auto;
	min-height: 100%;
	background: #ededed;
}

body.legal-doc {
	color: #000;
	-webkit-user-select: text;
	user-select: text;
}

.legal-skip {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 50;
	padding: 8px 12px;
	background: #fff;
	color: #000;
}

.legal-skip:focus {
	top: 12px;
}

body.legal-doc .legal-top,
body.legal-doc .legal-frame,
body.legal-doc .legal-article,
body.legal-doc .legal-article p,
body.legal-doc .legal-article li {
	-webkit-user-select: text;
	user-select: text;
}

.legal-top {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
	background: #fff;
	color: #000;
}

.legal-logo {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

.legal-logo img {
	display: block;
	width: 36px;
	height: 36px;
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 24px;
}

.legal-menu a {
	color: #000;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.legal-menu a:hover {
	opacity: 0.64;
}

.legal-frame {
	display: grid;
	grid-template-columns: 249px minmax(0, 662px);
	column-gap: 92px;
	justify-content: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: 88px 40px 120px;
}

.legal-side {
	position: sticky;
	top: 120px;
	align-self: start;
	width: 100%;
	max-width: 249px;
}

.legal-side a,
.legal-side .is-reserved {
	display: block;
	padding: 0 0 8px;
	margin: 0 0 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.16);
	color: #000;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-decoration: none;
	text-transform: uppercase;
}

.legal-side a {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.legal-side a:hover,
.legal-side a[aria-current="page"] {
	opacity: 1;
}

.legal-side .is-reserved {
	opacity: 0.35;
	cursor: default;
}

.legal-article {
	max-width: 662px;
	color: #000;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.legal-article h1 {
	margin: 0 0 16px;
	color: #000;
	font-family: Inter, system-ui, sans-serif;
	font-size: 52px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.32;
}

.legal-updated {
	margin: 0 0 28px;
	color: rgba(0, 0, 0, 0.75);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.4;
	text-transform: uppercase;
}

.legal-article h2 {
	margin: 40px 0 12px;
	color: #000;
	font-family: Inter, system-ui, sans-serif;
	font-size: 27px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.33;
}

.legal-article p,
.legal-article li {
	margin: 0 0 16px;
	color: #000;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.legal-article .legal-callout {
	margin: 0 0 28px;
	font-size: 15px;
	letter-spacing: 0.01em;
	line-height: 1.55;
	text-transform: uppercase;
}

.legal-article a {
	color: #000;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-article ul,
.legal-article ol {
	margin: 0 0 16px 1.25rem;
	padding: 0;
}

.legal-article li {
	margin: 0 0 8px;
}

body.legal-doc .parallax-footer {
	transform: none;
}

body.legal-doc #clapat-footer .footer-content > .columns-group {
	width: 100%;
	flex: 0 0 100%;
}

body.legal-doc #clapat-footer .footer-content .one_full,
body.legal-doc #clapat-footer .footer-content .one_half {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body.legal-doc #clapat-footer .big-title {
	left: 0;
	margin-left: 0;
}

body.legal-doc #clapat-footer .animated-line {
	width: 100%;
}

body.legal-doc #clapat-footer .animated-line::before {
	transform: scaleX(1);
	opacity: 0.15;
}

body.legal-doc #clapat-footer .footer-nav-lists,
body.legal-doc #clapat-footer .one_half p,
body.legal-doc #clapat-footer .one_half ul {
	margin-left: 0;
	padding-left: 0;
}

body.legal-doc #clapat-footer,
body.legal-doc #clapat-footer * {
	pointer-events: auto;
}

@media (max-width: 900px) {
	.legal-frame {
		grid-template-columns: 1fr;
		row-gap: 40px;
		padding: 48px 24px 80px;
	}

	.legal-side {
		position: static;
		max-width: none;
	}

	.legal-article h1 {
		font-size: 40px;
	}
}

@media (max-width: 640px) {
	.legal-top {
		gap: 16px;
		padding: 14px 16px;
	}

	.legal-menu {
		flex-wrap: nowrap;
		gap: 20px;
	}

	.legal-article h1 {
		font-size: 34px;
	}
}
