/* -------------------------------------------------------------------------
 * Legal page refinements (Privacy Policy, Terms & Conditions).
 * Applied via body.csec-legal-page class from inc/legal-pages.php.
 *
 * Design notes:
 *  - Fraunces for the H1 title: editorial, quietly authoritative — fits the
 *    tone of a legal document without feeling corporate or cold.
 *  - Plus Jakarta Sans for section headings: clean, modern, slightly humanist.
 *  - Body stays on the theme's default sans; only size/leading/width tuned.
 *  - Single narrow reading column for comfortable line length (~68-74 char).
 *  - Brand green (#007352) used sparingly as a section-rule accent.
 * ----------------------------------------------------------------------- */

:root {
	--csec-legal-ink:     #1a1f1d;
	--csec-legal-body:    #2a3330;
	--csec-legal-muted:   #6b7672;
	--csec-legal-rule:    rgba(0, 115, 82, 0.18);
	--csec-legal-accent:  #007352;
	--csec-legal-accent2: #005f43;
	--csec-legal-bg:      #fbfbfa;
	--csec-legal-hairline:#e6e4de;
}

body.csec-legal-page {
	background: var(--csec-legal-bg);
}

/* Give the post content a real reading column. Divi drops the post inside a
 * generic .entry container; we constrain typography there.
 */
body.csec-legal-page .et_pb_post,
body.csec-legal-page .entry,
body.csec-legal-page .post,
body.csec-legal-page .entry-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	color: var(--csec-legal-body);
	font-size: 17px;
	line-height: 1.72;
	letter-spacing: 0.005em;
}

/* ---- Masthead ---- */
body.csec-legal-page .csec-legal-header {
	margin: 56px auto 44px;
	padding: 0 0 28px;
	border-bottom: 1px solid var(--csec-legal-hairline);
	text-align: left;
}

body.csec-legal-page .csec-legal-eyebrow {
	display: inline-block;
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--csec-legal-accent);
	padding: 5px 12px;
	border: 1px solid rgba(0, 115, 82, 0.35);
	border-radius: 999px;
	margin: 0 0 22px;
	background: rgba(0, 115, 82, 0.04);
}

body.csec-legal-page .csec-legal-title {
	font-family: "Fraunces", Georgia, "Times New Roman", serif;
	font-optical-sizing: auto;
	font-variation-settings: "opsz" 96;
	font-weight: 500;
	font-size: clamp(40px, 5.2vw, 62px);
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: var(--csec-legal-ink);
	margin: 0 0 18px;
}

body.csec-legal-page .csec-legal-updated {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--csec-legal-muted);
	text-transform: uppercase;
	margin: 10px 0 0;
}

/* ---- Body typography ---- */
body.csec-legal-page .entry-content > p,
body.csec-legal-page .post > p,
body.csec-legal-page .entry > p {
	margin: 0 0 18px;
}

body.csec-legal-page .entry-content h2 {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--csec-legal-ink);
	margin: 56px 0 14px;
	padding: 22px 0 0;
	letter-spacing: -0.005em;
	position: relative;
}

body.csec-legal-page .entry-content h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 44px;
	height: 2px;
	background: var(--csec-legal-accent);
}

body.csec-legal-page .entry-content h3 {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--csec-legal-ink);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 32px 0 10px;
}

/* ---- Lists ---- */
body.csec-legal-page .entry-content ul,
body.csec-legal-page .entry ul,
body.csec-legal-page .post ul {
	list-style: none !important;
	list-style-type: none !important;
	list-style-image: none !important;
	padding-left: 0;
	margin: 0 0 22px;
}

body.csec-legal-page .entry-content ul li,
body.csec-legal-page .entry ul li,
body.csec-legal-page .post ul li {
	position: relative;
	padding-left: 22px;
	margin: 0 0 8px;
	list-style: none !important;
	list-style-type: none !important;
	background: none !important; /* kill any Divi-injected bullet image */
}

body.csec-legal-page .entry-content ul li::before,
body.csec-legal-page .entry ul li::before,
body.csec-legal-page .post ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.78em;
	width: 6px;
	height: 6px;
	background: var(--csec-legal-accent);
	border-radius: 50%;
}

/* ---- Links ---- */
body.csec-legal-page .entry-content a {
	color: var(--csec-legal-accent2);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 95, 67, 0.35);
	transition: border-color 160ms ease, color 160ms ease;
}
body.csec-legal-page .entry-content a:hover {
	color: var(--csec-legal-accent);
	border-bottom-color: var(--csec-legal-accent);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	body.csec-legal-page .et_pb_post,
	body.csec-legal-page .entry,
	body.csec-legal-page .post,
	body.csec-legal-page .entry-content {
		font-size: 16px;
		padding-left: 18px;
		padding-right: 18px;
	}
	body.csec-legal-page .csec-legal-header {
		margin: 32px auto 32px;
		padding-bottom: 22px;
	}
	body.csec-legal-page .csec-legal-eyebrow {
		margin-bottom: 16px;
	}
	body.csec-legal-page .entry-content h2 {
		font-size: 20px;
		margin-top: 44px;
	}
}
