/* ==========================================================================
   Finney's Crafthouse — Shared legal / informational page styles
   Used by the "Privacy Policy Page" and "Terms of Use Page" templates.
   Branded hero banner + readable content card that mirror the homepage.
   Loaded only on legal pages (see functions.php).
   ========================================================================== */

/* Let the custom template run full-width inside Divi's content wrappers,
   while the global :not(.finneys-homepage) rule keeps the 72px nav offset. */
body.finneys-site.finneys-legal #main-content,
body.finneys-site.finneys-legal #main-content .container {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.finneys-site.finneys-legal #main-content .container:before,
body.finneys-site.finneys-legal #main-content .container:after {
	display: none !important;
}

/* Hide any default WordPress/Divi page title — the hero carries the title. */
body.finneys-legal .entry-title,
body.finneys-legal .main_title {
	display: none !important;
}

.legal-page {
	background: var(--warm-white);
	font-family: var(--font-body);
}

/* ── HERO / BANNER ──────────────────────────────────────────────────────── */
.legal-hero {
	position: relative;
	overflow: hidden;
	background: var(--black);
	padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(3.25rem, 7vw, 5.5rem);
	text-align: center;
}
.legal-hero-bg {
	position: absolute;
	inset: 0;
	background-image: url('../images/brick-texture.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.legal-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(5,3,3,0.82) 0%, rgba(15,8,8,0.72) 50%, rgba(20,10,10,0.78) 100%);
}
.legal-hero-texture {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: radial-gradient(circle at 20% 50%, rgba(200,39,45,0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(200,39,45,0.05) 0%, transparent 40%);
}
.legal-hero-grid {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
	background-size: 60px 60px;
}
.legal-hero-content {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
}
.legal-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 1.1rem;
}
.legal-eyebrow::before,
.legal-eyebrow::after {
	content: '';
	width: 34px;
	height: 1px;
	background: var(--red);
	opacity: 0.7;
}
.legal-title {
	font-family: var(--font-display);
	font-size: clamp(1.125rem, 2.75vw, 2rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0;
}
.legal-title em {
	font-style: italic;
	font-weight: 400;
	color: var(--red);
}
.legal-subtitle {
	max-width: 560px;
	margin: 1.15rem auto 0;
	font-size: 1.02rem;
	font-weight: 300;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.68);
}
.legal-updated {
	display: inline-block;
	margin-top: 1.6rem;
	padding: 0.45rem 1.1rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50px;
}

/* ── BODY / CONTENT CARD ────────────────────────────────────────────────── */
.legal-body {
	padding: clamp(3rem, 7vw, 5.5rem) 1.5rem clamp(4rem, 9vw, 7rem);
}
.legal-container {
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid rgba(17, 16, 16, 0.07);
	border-radius: 16px;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	box-shadow: 0 1px 2px rgba(17, 16, 16, 0.04), 0 18px 48px rgba(17, 16, 16, 0.06);
}

.legal-content {
	color: #4a4540;
}
.legal-content > *:first-child {
	margin-top: 0;
}
.legal-content > *:last-child {
	margin-bottom: 0;
}

.legal-content .legal-lead {
	font-size: 1.1rem;
	line-height: 1.75;
	font-weight: 400;
	color: var(--charcoal);
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(17, 16, 16, 0.08);
}

.legal-content h2 {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--black);
	margin: 2.75rem 0 1rem;
	padding-left: 0.9rem;
	border-left: 3px solid var(--red);
}
.legal-content h3 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--charcoal);
	margin: 1.85rem 0 0.6rem;
}
.legal-content h4 {
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--red);
	margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.8;
	font-weight: 300;
	color: #4a4540;
}
.legal-content p {
	margin: 0 0 1.15rem;
}
.legal-content ul,
.legal-content ol {
	margin: 0 0 1.3rem 1.35rem;
	padding: 0;
}
.legal-content ul {
	list-style: disc;
}
.legal-content ol {
	list-style: decimal;
}
.legal-content li {
	margin-bottom: 0.5rem;
	padding-left: 0.3rem;
}
.legal-content li::marker {
	color: var(--red);
}
.legal-content a {
	color: var(--red);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s var(--ease);
}
.legal-content a:hover {
	color: var(--red-dark);
}
.legal-content strong {
	font-weight: 600;
	color: var(--charcoal);
}
.legal-content hr {
	border: 0;
	height: 1px;
	background: rgba(17, 16, 16, 0.08);
	margin: 2rem 0;
}
.legal-content blockquote {
	margin: 1.5rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--tan);
	color: var(--muted);
	font-style: italic;
}

/* ── SITEMAP ────────────────────────────────────────────────────────────── */
.sitemap-inner {
	max-width: 1100px;
	margin: 0 auto;
}
.sitemap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	align-items: start;
}
.sitemap-group {
	background: #fff;
	border: 1px solid rgba(17, 16, 16, 0.07);
	border-radius: 16px;
	padding: 2rem 1.85rem;
	box-shadow: 0 1px 2px rgba(17, 16, 16, 0.04), 0 14px 38px rgba(17, 16, 16, 0.05);
}
.sitemap-group--wide {
	grid-column: 1 / -1;
}
.sitemap-group h2 {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--black);
	margin: 0 0 1.1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgba(17, 16, 16, 0.08);
}
.sitemap-group h2 a {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--ease);
}
.sitemap-group h2 a:hover {
	color: var(--red);
}
.sitemap-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sitemap-group li {
	margin: 0;
}
.sitemap-group li + li {
	margin-top: 0.15rem;
}
.sitemap-group a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-body);
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.5;
	color: #4a4540;
	text-decoration: none;
	padding: 0.35rem 0;
	transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.sitemap-group ul:not(.sitemap-locations) a::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tan);
	flex-shrink: 0;
	transition: background 0.2s var(--ease);
}
.sitemap-group a:hover {
	color: var(--red);
	transform: translateX(2px);
}
.sitemap-group ul:not(.sitemap-locations) a:hover::before {
	background: var(--red);
}
.sitemap-locations {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0.1rem 1.5rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.legal-subtitle {
		font-size: 0.96rem;
	}
	.legal-content p,
	.legal-content li {
		font-size: 0.98rem;
	}
	.sitemap-group {
		padding: 1.6rem 1.4rem;
	}
}
@media (max-width: 600px) {
	.legal-container {
		border-radius: 12px;
	}
	.legal-content h2 {
		margin-top: 2.25rem;
	}
	.sitemap-group {
		border-radius: 12px;
	}
}
