/*--------------------------------------------------------------
# Legal
# Privacy Policy and Terms share this. A reading layout, not a
# marketing one: a quiet header, then the page's own text in a
# 720px column with type set for long reading.
--------------------------------------------------------------*/

/* ──────────────────────────────────────────────
   Header — the FAQ hero's shape, one step smaller
   ────────────────────────────────────────────── */

.legal__header {
	background: var(--tpp-white);
	border-bottom: 1px solid var(--tpp-border-light);
	padding: 80px 0 48px;
}

.legal__header-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
	text-align: center;

	animation: legal-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.legal__eyebrow {
	display: inline-block;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tpp-text-light);
	margin-bottom: 16px;
}

.legal__title {
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 3.6vw + 0.5rem, 3rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0;
}

.legal__updated {
	font-family: var(--tpp-font-body);
	font-size: 0.875rem;
	color: var(--tpp-text-light);
	margin: 16px 0 0;
}


/* ──────────────────────────────────────────────
   Body
   ────────────────────────────────────────────── */

.legal__body {
	max-width: 720px;
	margin: 0 auto;
	padding: 56px var(--tpp-container-padding) 100px;
}


/* ── The page's own text ──
   Styled by element rather than class, since it comes from the editor. */

.legal__content {
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--tpp-text);
}

.legal__content > :first-child {
	margin-top: 0;
}

.legal__content h2 {
	font-family: var(--tpp-font-heading);
	font-size: clamp(1.35rem, 1.2vw + 0.95rem, 1.625rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--tpp-black);
	margin: 52px 0 14px;
}

.legal__content h3 {
	font-family: var(--tpp-font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--tpp-black);
	margin: 34px 0 10px;
}

.legal__content h4 {
	font-family: var(--tpp-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--tpp-black);
	margin: 26px 0 8px;
}

.legal__content p {
	margin: 0 0 18px;
}

.legal__content ul,
.legal__content ol {
	margin: 0 0 18px;
	padding-left: 1.3em;
}

.legal__content li {
	margin: 0 0 8px;
}

.legal__content li::marker {
	color: var(--tpp-text-light);
}

.legal__content strong,
.legal__content b {
	font-weight: 600;
	color: var(--tpp-black);
}

.legal__content a,
.legal__contact a {
	color: var(--tpp-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-thickness var(--tpp-transition);
}

.legal__content a:hover,
.legal__contact a:hover {
	text-decoration-thickness: 2px;
}

.legal__content a:visited,
.legal__contact a:visited {
	color: var(--tpp-blue);
}

.legal__content a:focus-visible,
.legal__contact a:focus-visible {
	outline: 2px solid var(--tpp-blue);
	outline-offset: 2px;
	border-radius: 2px;
}

.legal__content blockquote {
	margin: 0 0 18px;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--tpp-black);
	color: var(--tpp-text);
}

.legal__content hr {
	border: 0;
	border-top: 1px solid var(--tpp-border-light);
	margin: 44px 0;
}

/* Tables scroll inside themselves rather than widening the page on a phone. */
.legal__content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 0 0 22px;
	font-size: 0.9375rem;
}

.legal__content th,
.legal__content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--tpp-border-light);
	text-align: left;
	vertical-align: top;
}

.legal__content th {
	font-weight: 600;
	color: var(--tpp-black);
}


/* ── Closing line ── */

.legal__contact {
	margin-top: 48px;
	padding: 22px 24px;
	border-radius: 16px;
	background: var(--tpp-off-white);
}

.legal__contact p {
	margin: 0;
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--tpp-text);
	overflow-wrap: anywhere;
}


/* ──────────────────────────────────────────────
   Entrance — CSS only, header only; the text itself should be
   there the moment someone arrives to read it.
   ────────────────────────────────────────────── */

@keyframes legal-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

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


/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
	.legal__header {
		padding: 64px 0 40px;
	}

	.legal__body {
		padding: 48px var(--tpp-container-padding) 80px;
	}
}

@media screen and (max-width: 767px) {
	.legal__header {
		padding: 48px 0 32px;
	}

	.legal__title {
		font-size: clamp(1.75rem, 7vw, 2.4rem);
	}

	.legal__body {
		padding: 36px var(--tpp-container-padding) 64px;
	}

	.legal__content {
		font-size: 0.9688rem;
	}

	.legal__content h2 {
		margin-top: 40px;
	}

	.legal__contact {
		margin-top: 36px;
		padding: 18px 20px;
	}
}

@media screen and (max-width: 480px) {
	.legal__header {
		padding: 40px 0 28px;
	}

	.legal__eyebrow {
		font-size: 0.75rem;
		margin-bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.legal__header-inner {
		animation: none;
	}

	.legal__content a,
	.legal__contact a {
		transition: none;
	}
}
