/* Terms, Privacy & Cookies (Figma node 3493:22350). */

.legal-intro {
	padding-top: clamp(88px, 9vw, 145px);
	padding-bottom: clamp(48px, 6vw, 80px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

/* A column-flex child defaults to min-width:auto, which lets it size to
   its own unwrapped content width instead of the container's — without
   this, the heading/paragraph overflow the viewport on narrow screens
   instead of wrapping. */
.legal-intro__title,
.legal-intro__content {
	min-width: 0;
	max-width: 100%;
}

.legal-intro__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1.25;
	color: var(--color-ink);
}

/* Global mobile h1 baseline (3.1rem) — see base.css. */
@media (max-width: 900px) {
	.legal-intro__title {
		font-size: 3.1rem;
	}
}

.legal-intro__content {
	max-width: 56.5rem;
}

.legal-intro__scroll-arrow {
	width: 59px;
	height: 59px;
	flex-shrink: 0;
}

.legal-intro__scroll-arrow img {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

/* --- Sections --- */
.legal-section {
	display: grid;
	grid-template-columns: 17rem 1fr;
	column-gap: clamp(40px, 8vw, 8.5rem);
	padding-block: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--color-ink);
	align-items: start;
}

.legal-section__label {
	position: sticky;
	top: 100px;
}

.legal-section__label-title {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--color-ink);
}

.legal-section__label-date {
	margin: 4px 0 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--color-ink);
}

.legal-section__content {
	max-width: 56.5rem;
}

/* --- Shared prose styling for the wysiwyg fields (intro + 3 sections) --- */
.legal-prose h3 {
	margin: 0 0 20px;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.4;
	color: var(--color-ink);
}

/* Global mobile h3 baseline (1.7rem) — see base.css. */
@media (max-width: 900px) {
	.legal-prose h3 {
		font-size: 1.7rem;
	}
}

.legal-prose p {
	margin: 0 0 20px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.56;
	color: var(--color-ink);
}

.legal-prose ul {
	margin: 0 0 20px;
	/* base.css resets all <ul> to list-style:none site-wide (used for nav/
	   card lists elsewhere) — restored here since this is real bulleted
	   body copy. */
	list-style: disc;
	padding-left: 1.25em;
}

.legal-prose li {
	margin-bottom: 6px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.56;
	color: var(--color-ink);
}

.legal-prose strong {
	/* 600, not the browser default ~700 — Roboto only has 400/500/600
	   loaded (see base.css @font-face), so anything heavier gets a
	   synthesized fake bold instead of the real typeface. */
	font-weight: 600;
}

.legal-prose a {
	color: #b89c02;
	text-decoration: none;
}

.legal-prose a:hover,
.legal-prose a:focus-visible {
	text-decoration: underline;
}

.legal-prose > *:last-child {
	margin-bottom: 0;
}

.legal-intro__content.legal-prose p {
	font-size: 1.25rem;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.legal-section {
		grid-template-columns: 1fr;
		row-gap: 24px;
	}

	.legal-section__label {
		position: static;
	}
}
