/* ============================================================
   Privacy & Terms (/privacy-and-terms/) — long-form legal documents.

   Two documents stacked on one page, each with a jump anchor. Optimised for
   readability over expression: a narrow measure, generous clause spacing, and a
   sticky-offset scroll target so an anchored heading isn't hidden under the nav.
   Page-scoped under .tc-legal; nothing here leaks to other templates.
   ============================================================ */

.tc-legal {
	background: var(--offwhite, #F7F6F2);
	padding: 56px 0 88px;
}

.tc-legal .tc-container--narrow {
	/* cards.css owns the member-side --narrow width and isn't loaded on public
	   pages; legal copy wants a ~70ch measure of its own regardless. */
	max-width: 780px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header ---------- */

.tc-legal__title {
	font-family: var(--font-display, 'Ubuntu', sans-serif);
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.1;
	color: var(--navy, #1B2D5B);
	margin: 0 0 16px;
}

.tc-legal__lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--slate, #2C3A4A);
	margin: 0 0 28px;
}

/* ---------- Jump links ---------- */

.tc-legal__jump {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0 0 32px;
	border-bottom: 1px solid var(--sand, #E8E6DF);
	margin: 0 0 8px;
}

.tc-legal__jump-link {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--sand, #E8E6DF);
	border-radius: 999px;
	background: #fff;
	color: var(--navy, #1B2D5B);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tc-legal__jump-link:hover,
.tc-legal__jump-link:focus-visible {
	background: var(--pumpkin, #F28030);
	border-color: var(--pumpkin, #F28030);
	color: #fff;
}

/* ---------- Document sections ---------- */

.tc-legal__doc {
	/* Anchor targets clear the fixed site nav rather than tucking under it. */
	scroll-margin-top: 96px;
	padding: 48px 0 0;
}

.tc-legal__doc + .tc-legal__doc {
	margin-top: 56px;
	border-top: 1px solid var(--sand, #E8E6DF);
}

.tc-legal__doc-title {
	font-family: var(--font-display, 'Ubuntu', sans-serif);
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	color: var(--navy, #1B2D5B);
	margin: 0 0 8px;
}

.tc-legal__effective {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pumpkin, #F28030);
	margin: 0 0 28px;
}

/* ---------- Document body (editor-authored HTML) ---------- */

.tc-legal__body {
	color: var(--slate, #2C3A4A);
	font-size: 1rem;
	line-height: 1.7;
}

.tc-legal__body h3 {
	font-family: var(--font-display, 'Ubuntu', sans-serif);
	font-size: 1.1875rem;
	line-height: 1.35;
	color: var(--navy, #1B2D5B);
	margin: 36px 0 10px;
}

.tc-legal__body h3:first-child {
	margin-top: 0;
}

.tc-legal__body p {
	margin: 0 0 16px;
}

.tc-legal__body ul,
.tc-legal__body ol {
	margin: 0 0 16px;
	padding-left: 24px;
}

.tc-legal__body li {
	margin: 0 0 8px;
}

.tc-legal__body a {
	color: var(--pumpkin, #F28030);
	text-decoration: underline;
	text-underline-offset: 2px;
	overflow-wrap: anywhere;
}

.tc-legal__body a:hover,
.tc-legal__body a:focus-visible {
	color: var(--navy, #1B2D5B);
}

.tc-legal__body strong {
	color: var(--navy, #1B2D5B);
	font-weight: 700;
}

@media (max-width: 600px) {
	.tc-legal {
		padding: 32px 0 56px;
	}

	.tc-legal__doc {
		padding-top: 32px;
	}
}
