/* ============================================================
   Legal pages — shared page CSS
   Scope: .hcg-legal. Used by page-privacy-policy.php AND
   page-terms.php (and any future static legal page). Loaded by
   hcg_assets() when the page slug is on the legal allow-list.

   Reused from theme.css (NOT redefined here):
   .hcg-eyebrow, .hcg-grad
   ============================================================ */

.hcg-legal {
	max-width: 880px;
	margin: 0 auto;
	padding: 96px 28px;
}

/* ---------- Hero ---------- */
.hcg-legal__head {
	text-align: center;
	margin-bottom: 64px;
}

.hcg-legal__head .hcg-eyebrow {
	margin-bottom: 18px;
	color: var(--hcg-c1);
}

.hcg-legal__title {
	font-family: var(--hcg-font-heading);
	font-weight: 800;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -.025em;
	margin: 0;
	color: var(--hcg-text);
}

.hcg-legal__sub {
	font-family: var(--hcg-font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hcg-muted);
	margin: 22px 0 0;
}

/* ---------- Body (legal text — readable, conservative) ---------- */
.hcg-legal__body {
	color: var(--hcg-text-2);
	font-size: 1rem;
	line-height: 1.75;
}

.hcg-legal__body > * + * {
	margin-top: 14px;
}

.hcg-legal__body p,
.hcg-legal__body ul,
.hcg-legal__body ol,
.hcg-legal__body table,
.hcg-legal__body address {
	margin: 0;
}

.hcg-legal__body h2 {
	font-family: var(--hcg-font-heading);
	font-weight: 800;
	font-size: clamp(1.5rem, 2.6vw, 1.95rem);
	letter-spacing: -.015em;
	line-height: 1.15;
	color: var(--hcg-text);
	margin: 56px 0 12px;
	scroll-margin-top: 88px;
}

.hcg-legal__body h2:first-child {
	margin-top: 0;
}

.hcg-legal__body h3 {
	font-family: var(--hcg-font-heading);
	font-weight: 700;
	font-size: clamp(1.15rem, 1.8vw, 1.35rem);
	line-height: 1.25;
	color: var(--hcg-text);
	margin: 36px 0 10px;
	scroll-margin-top: 88px;
}

.hcg-legal__body h4 {
	font-family: var(--hcg-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--hcg-text);
	margin: 24px 0 8px;
}

.hcg-legal__body strong {
	color: var(--hcg-text);
}

.hcg-legal__body ul,
.hcg-legal__body ol {
	padding-left: 22px;
}

.hcg-legal__body li {
	margin: 6px 0;
}

.hcg-legal__body li > ul,
.hcg-legal__body li > ol {
	margin: 8px 0 4px;
}

.hcg-legal__body a {
	color: var(--hcg-c1);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.hcg-legal__body a:hover {
	text-decoration: none;
}

/* ---------- Table of contents ---------- */
.hcg-legal__toc {
	background: var(--hcg-surface);
	border: 1px solid var(--hcg-border);
	border-radius: var(--hcg-r-lg, 14px);
	padding: 22px 22px 22px 44px;
	margin: 12px 0 24px;
	font-size: .95rem;
	line-height: 1.55;
}

.hcg-legal__toc li {
	margin: 4px 0;
}

.hcg-legal__toc a {
	color: var(--hcg-text-2);
	text-decoration: none;
}

.hcg-legal__toc a:hover {
	color: var(--hcg-c1);
	text-decoration: underline;
}

/* ---------- US categories table ---------- */
.hcg-legal__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
	margin: 12px 0;
	border: 1px solid var(--hcg-border);
}

.hcg-legal__table th,
.hcg-legal__table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--hcg-border);
	vertical-align: top;
	line-height: 1.5;
}

.hcg-legal__table thead th {
	background: var(--hcg-surface);
	font-family: var(--hcg-font-heading);
	font-weight: 700;
	color: var(--hcg-text);
}

.hcg-legal__table tbody td:first-child {
	font-weight: 600;
	color: var(--hcg-text);
	white-space: nowrap;
	width: 30%;
}

.hcg-legal__table tbody td:last-child {
	text-align: center;
	font-weight: 700;
	width: 10%;
}

.hcg-legal__table tbody tr:last-child td {
	border-bottom: 0;
}

/* ---------- Address block ---------- */
.hcg-legal__address {
	font-style: normal;
	background: var(--hcg-surface);
	border-left: 3px solid var(--hcg-c1);
	padding: 16px 20px;
	margin: 12px 0;
	color: var(--hcg-text);
	line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.hcg-legal {
		padding: 64px 20px;
	}
	.hcg-legal__head {
		margin-bottom: 40px;
	}
	.hcg-legal__body h2 {
		margin-top: 40px;
	}
	.hcg-legal__table {
		font-size: .85rem;
	}
	.hcg-legal__table th,
	.hcg-legal__table td {
		padding: 10px 8px;
	}
	.hcg-legal__toc {
		padding: 18px 18px 18px 38px;
	}
}
