/*
 * Legal pages (/terms, /privacy, /hummm/license: page-legal.php) and /hummm/support
 * (page-hummm-support.php): ink on FUSS light (#e7e9e0), over the shop frame (css/shop.css:
 * top bar, green footer). Type scale and margins of /shop/hummm's light sections: the title
 * at the section-heading size with its lead beside it, then one row per heading (heading
 * left, text right, thin ink rule above). Every word is ink, links underlined in ink.
 */

/* Over v2.css's white page, so the bounce at either end stays FUSS light. */
html:has(body.fuss-legal),
html.is-v2:has(body.fuss-legal),
html.is-v2 body.fuss-v2.fuss-legal {
	background: #e7e9e0;
}

.legalInk {
	--fg: var(--ink);
	color: var(--ink);
}

.legalInk ul {
	margin: 0;
	padding: 0;
}

.legalInk .shopCrumb {
	opacity: 1;
}

.legalInk .shopCrumb a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.legalInk a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.legalInk a:hover {
	text-decoration-thickness: 2px;
}

.legalInk a:focus-visible,
.legalInk .shopMenuBtn:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

.legalInk .shopFoot a {
	text-decoration: none;
}

.legalInk b {
	font-weight: 500;
}

/* ---------- The head: title left, lead right (as .shopHead) ---------- */

.legalHead {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: var(--m);
	align-items: start;
	padding: 96px var(--m) 0;
}

.legalInk .legalTitle {
	max-width: 640px;
	margin: 0;
	font-size: clamp(40px, 5vw, 72px);
	line-height: 1.056;
	letter-spacing: -.02em;
	font-weight: 400;
	text-wrap: balance;
}

.legalLead {
	max-width: 560px;
	padding-top: 12px;
	font-size: 18px;
	line-height: 1.4;
}

.legalInk .legalLead p + p {
	margin-top: 16px;
}

/* ---------- Rows: heading left, text right (as .shopRow) ---------- */

.legalBody {
	padding: 36px var(--m) 144px;
}

.legalSec,
.legalInk .helpLegalLinks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: var(--m);
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.legalInk .legalSec h2 {
	grid-column: 1;
	max-width: 560px;
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 500;
	letter-spacing: 0;
}

.legalText {
	grid-column: 2;
	max-width: 640px;
	font-size: 18px;
	line-height: 26px;
}

.legalInk .legalText > * + * {
	margin-top: 16px;
}

.legalText ul {
	padding-left: 1.2em;
	list-style: disc;
}

.legalText li + li {
	margin-top: 8px;
}

/* The closing line: Terms, Privacy, Hummm license (parts/legal-links.php). */
.legalInk .helpLegalLinks p {
	grid-column: 2;
	font-size: 15px;
	line-height: 20px;
}

.legalInk .helpLegalLinks span {
	margin: 0 8px;
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
	.legalHead,
	.legalSec,
	.legalInk .helpLegalLinks {
		grid-template-columns: 1fr;
	}

	.legalHead {
		padding-top: 40px;
	}

	.legalInk .legalTitle {
		font-size: 40px;
		line-height: 44px;
	}

	.legalLead {
		padding-top: 16px;
		font-size: 15px;
		line-height: 19.5px;
	}

	.legalBody {
		padding-top: 8px;
		padding-bottom: 96px;
	}

	.legalSec,
	.legalInk .helpLegalLinks {
		margin-top: 48px;
		padding-top: 20px;
	}

	.legalInk .legalSec h2 {
		margin-bottom: 16px;
		font-size: 20px;
		line-height: 26px;
	}

	.legalText,
	.legalInk .helpLegalLinks p {
		grid-column: 1;
	}

	.legalText {
		font-size: 15px;
		line-height: 22px;
	}

	.legalInk .legalText > * + * {
		margin-top: 12px;
	}
}
