/* Shared additions to the original theme: footer + privacy page */

:root {
	--teal: #009EB9;
	--teal-ink: #00788D; /* AA-contrast teal for links on white */
	--ink: #1F2A2E;
	--ink-soft: #4A5A60;
	--rule: #DCE7EA;
	--tint: #F2F8F9;
}

/* ---------- Footer ---------- */
.site-footer {
	font-family: "puffin-display", sans-serif;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
}
.site-footer a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration-thickness: 2px;
}

/* Home page: sits bottom-left, opposite the contact details */
.home-banner-main .site-footer {
	position: absolute;
	left: 80px;
	bottom: 50px;
	z-index: 2;
}
@media (max-width: 767px) {
	.home-banner-main .site-footer {
		position: static;
		padding: 0 30px 30px;
	}
}

/* ---------- Privacy page ---------- */
body.page-legal {
	background: #fff;
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	margin: 0;
}
html:has(body.page-legal) {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html:has(body.page-legal) { scroll-behavior: auto; }
}

.legal-header {
	background: var(--teal);
	color: #fff;
	padding: 32px 24px 48px;
}
.legal-header__inner,
.legal-footer .site-footer {
	max-width: 1080px;
	margin: 0 auto;
}
/* .legal-body carries its own side padding, so widen it to line up with the header */
.legal-body {
	box-sizing: border-box;
	max-width: calc(1080px + 48px);
	margin: 0 auto;
}
.legal-header__logo {
	display: inline-block;
}
.legal-header__logo img {
	height: 120px;
	width: auto;
	display: block;
}
.legal-header h1 {
	font-family: "puffin-display", sans-serif;
	font-weight: 700;
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.1;
	margin: 32px 0 0;
	max-width: 18ch;
}

.legal-body {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 64px;
	padding: 56px 24px 80px;
}

/* Table of contents */
.toc {
	position: sticky;
	top: 24px;
	align-self: start;
	font-size: 15px;
}
.toc h2 {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 0 0 12px;
}
.toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--rule);
}
.toc li { margin: 0; }
.toc a {
	display: block;
	padding: 6px 0 6px 14px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--ink-soft);
	text-decoration: none;
	line-height: 1.35;
}
.toc a:hover,
.toc a:focus-visible {
	color: var(--teal-ink);
	border-left-color: var(--teal);
}

/* Content */
.legal-content {
	max-width: 68ch;
	font-size: 17px;
	line-height: 1.7;
}
.legal-content .lead {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink);
}
.legal-content p {
	margin: 0 0 1.1em;
	color: var(--ink-soft);
}
.legal-content .lead { color: var(--ink); }
.legal-content section {
	padding-top: 40px;
	margin-top: 40px;
	border-top: 1px solid var(--rule);
	scroll-margin-top: 16px;
}
.legal-content h2 {
	font-family: "puffin-display", sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.25;
	color: var(--ink);
	margin: 0 0 16px;
}
.legal-content a {
	color: var(--teal-ink);
}

.legal-footer {
	background: var(--teal);
	padding: 28px 24px;
}

@media (max-width: 860px) {
	.legal-body {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 32px;
	}
	.toc {
		position: static;
		background: var(--tint);
		border-radius: 12px;
		padding: 20px 20px 14px;
	}
	.toc ol { border-left: 0; }
	.toc a {
		padding: 8px 0;
		margin: 0;
		border: 0;
	}
	.legal-header {
		padding: 24px 16px 36px;
	}
	.legal-header__logo img { height: 90px; }
	.legal-body,
	.legal-footer { padding-left: 16px; padding-right: 16px; }
}
