/**
 * Legal documents — /privacy, /terms, /cookies and any future page
 * using page-legal.php.
 *
 * Layout sections (matches archive-helpers.php + page-legal.php):
 *   .hj-legal-page                  (root)
 *     .hj-legal-header                (eyebrow, title, standfirst, meta)
 *     .hj-legal-main                  (TOC + content grid)
 *       .hj-legal-toc                  (sticky, .is-active class on current item)
 *       .hj-legal-content              (block-editor body, decorated server-side)
 *         .hj-legal-section              (numbered section wrapper)
 *           .hj-legal-section__head        (Roman num + H2 title)
 *           .hj-legal-callout              (— In short — pull-out)
 *       .hj-legal-signoff               (Signed by the Office)
 *     .hj-legal-siblings               (other-docs row, current highlighted)
 *
 * Loaded only on Pages using the page-legal.php template.
 */

.hj-legal-page { background: var(--cream); color: var(--charcoal); }

/* ============ HEADER ============ */
.hj-legal-header {
	padding: 56px 0 64px;
	border-bottom: 1px solid var(--rule);
}
.hj-legal-header .hj-container { max-width: 1440px; }
.hj-legal-header__eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule-soft);
	display: inline-block;
	padding-right: 32px;
}
.hj-legal-header__title {
	font-family: var(--display);
	font-variation-settings: "opsz" 144;
	font-size: clamp(56px, 8vw, 112px);
	font-weight: 200;
	line-height: 0.92;
	letter-spacing: -0.028em;
	margin: 0 0 28px;
	color: var(--ink);
}
.hj-legal-header__title em {
	font-style: italic;
	color: var(--oxblood);
	font-weight: 200;
}
.hj-legal-header__standfirst {
	font-family: var(--display);
	font-style: italic;
	font-size: 22px;
	line-height: 1.55;
	font-weight: 300;
	max-width: 64ch;
	color: var(--ink-mute);
	margin: 0 0 36px;
}
.hj-legal-header__meta {
	display: flex;
	gap: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--rule-soft);
	flex-wrap: wrap;
}
.hj-legal-header__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hj-legal-header__meta-item .k {
	font-family: var(--sans);
	font-size: 10px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
}
.hj-legal-header__meta-item .v {
	font-family: var(--display);
	font-size: 17px;
	color: var(--ink);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* ============ MAIN GRID ============ */
.hj-legal-main { padding: 80px 0 100px; }
.hj-legal-main .hj-container { max-width: 1440px; }
.hj-legal-main__grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 88px;
	align-items: start;
}
@media (max-width: 960px) {
	.hj-legal-main__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============ TOC ============ */
.hj-legal-toc {
	position: sticky;
	top: 120px;
	align-self: start;
	border-left: 1px solid var(--rule);
	padding: 4px 0 4px 24px;
}
@media (max-width: 960px) {
	.hj-legal-toc {
		position: static;
		border-left: none;
		border-top: 1px solid var(--rule);
		border-bottom: 1px solid var(--rule);
		padding: 24px 0;
	}
}
.hj-legal-toc__label {
	font-family: var(--sans);
	font-size: 10px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule-soft);
}
.hj-legal-toc__list { list-style: none; margin: 0; padding: 0; }
.hj-legal-toc__item { margin-bottom: 2px; }
.hj-legal-toc__item a {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 8px;
	align-items: baseline;
	padding: 8px 0;
	text-decoration: none;
	color: var(--ink-mute);
	transition: color 0.2s;
	position: relative;
}
.hj-legal-toc__item a:hover { color: var(--ink); }
.hj-legal-toc__item.is-active a { color: var(--oxblood); }
.hj-legal-toc__item.is-active a::before {
	content: "";
	position: absolute;
	left: -25px;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 24px;
	background: var(--oxblood);
}
.hj-legal-toc__num {
	font-family: var(--display);
	font-style: italic;
	font-size: 14px;
	color: var(--oxblood);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}
.hj-legal-toc__text {
	font-family: var(--serif);
	font-size: 15px;
	line-height: 1.35;
}

/* ============ CONTENT ============ */
.hj-legal-content { max-width: 720px; font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--charcoal); }

.hj-legal-section {
	margin-bottom: 72px;
	scroll-margin-top: 140px;
}
.hj-legal-section:last-child { margin-bottom: 0; }

.hj-legal-section__head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	align-items: baseline;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rule);
}
.hj-legal-section__num {
	font-family: var(--display);
	font-style: italic;
	font-size: 32px;
	color: var(--oxblood);
	font-weight: 300;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.hj-legal-section__title {
	font-family: var(--display);
	font-variation-settings: "opsz" 96;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.018em;
	margin: 0;
	color: var(--ink);
}
.hj-legal-section__title em {
	font-style: italic;
	color: var(--ink);
	font-weight: 400;
}

/* Headings inside body */
.hj-legal-content h3 {
	font-family: var(--display);
	font-size: 20px;
	font-weight: 500;
	color: var(--ink);
	margin: 32px 0 12px;
	letter-spacing: -0.01em;
}
.hj-legal-content h3 em { font-style: italic; color: var(--oxblood); font-weight: 500; }

.hj-legal-content p { margin: 0 0 18px; }
.hj-legal-content p:last-child { margin-bottom: 0; }

.hj-legal-content a {
	color: var(--oxblood);
	text-decoration: none;
	border-bottom: 1px solid var(--oxblood);
	padding-bottom: 1px;
}
.hj-legal-content a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Lists — em-dashed bullets, matching the brand register */
.hj-legal-content ul {
	margin: 8px 0 24px;
	padding: 0;
	list-style: none;
}
.hj-legal-content ul li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
	line-height: 1.6;
}
.hj-legal-content ul li::before {
	content: "—";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--oxblood);
	font-family: var(--display);
	font-weight: 400;
}
.hj-legal-content ul li strong {
	font-family: var(--display);
	font-weight: 500;
	color: var(--ink);
}

/* "In short" callout pattern */
.hj-legal-callout {
	background: var(--cream-soft);
	border-left: 2px solid var(--oxblood);
	padding: 20px 28px;
	margin: 28px 0;
}
.hj-legal-callout .eyebrow {
	font-family: var(--sans);
	font-size: 10px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
	margin-bottom: 10px;
}
.hj-legal-callout p {
	font-family: var(--display);
	font-style: italic;
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	margin: 0;
	font-weight: 300;
}

/* Address block (Contact section) */
.hj-legal-address {
	background: var(--ivory);
	padding: 28px 32px;
	margin: 32px 0;
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
}
.hj-legal-address strong {
	display: block;
	font-family: var(--display);
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 6px;
	font-size: 18px;
}

/* ============ SIGNOFF ============ */
.hj-legal-signoff {
	margin-top: 96px;
	padding-top: 36px;
	border-top: 2px solid var(--oxblood);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 32px;
	flex-wrap: wrap;
}
.hj-legal-signoff__meta {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
}
.hj-legal-signoff__house {
	font-family: var(--display);
	font-style: italic;
	font-size: 17px;
	color: var(--ink-mute);
	font-weight: 400;
}

/* ============ SIBLING DOCS ============ */
.hj-legal-siblings {
	background: var(--ivory);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 80px 0;
}
.hj-legal-siblings .hj-container { max-width: 1440px; }
.hj-legal-siblings__label {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule);
}
.hj-legal-siblings__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid var(--rule);
	border-left: 1px solid var(--rule);
}
@media (max-width: 900px) { .hj-legal-siblings__grid { grid-template-columns: 1fr; } }

.hj-legal-siblings__card {
	background: var(--cream);
	padding: 32px 28px;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: background 0.3s var(--ease);
	position: relative;
}
a.hj-legal-siblings__card:hover { background: var(--cream-soft); }
.hj-legal-siblings__card.is-current { background: var(--cream-soft); }
.hj-legal-siblings__card.is-current::after {
	content: "— You are here";
	position: absolute;
	top: 14px;
	right: 14px;
	font-family: var(--sans);
	font-size: 9px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
}
.hj-legal-siblings__num {
	font-family: var(--display);
	font-style: italic;
	font-size: 14px;
	color: var(--oxblood);
}
.hj-legal-siblings__title {
	font-family: var(--display);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--ink);
}
.hj-legal-siblings__title em { font-style: italic; color: var(--oxblood); }
.hj-legal-siblings__desc {
	font-family: var(--serif);
	font-style: italic;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-mute);
	margin: 0;
	flex: 1;
}
.hj-legal-siblings__link {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--oxblood);
	font-weight: 700;
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--rule-soft);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hj-legal-siblings__link::after { content: "→"; transition: transform 0.25s var(--ease); }
a.hj-legal-siblings__card:hover .hj-legal-siblings__link::after { transform: translateX(6px); }
