/**
 * Legal "Download as PDF" button — print-to-PDF styling.
 * Screen: the button. Print: hide all site chrome, show just the policy text
 * plus a stamped header (title / effective date / downloaded-on). Produces a
 * clean, selectable-text PDF via the browser's native "Save as PDF".
 */

/* ---------- screen ---------- */
.hp-legal-pdf { margin: 1.5em 0; }

.hp-legal-pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	background: var( --gp-accent, #4C9F9C );
	color: #fff;
	border: 0;
	padding: .7em 1.4em;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: filter .15s ease;
}
.hp-legal-pdf-btn:hover,
.hp-legal-pdf-btn:focus { filter: brightness( .93 ); color: #fff; }
.hp-legal-pdf-icon { font-size: 1.1em; }

/* The stamped meta block is print-only. */
.hp-legal-pdf-meta { display: none; }

/* ---------- print ---------- */
@media print {
	/* Hide site chrome, widgets, overlays, and the button itself. */
	header, .haru-header, .header, #masthead, .site-header,
	footer, .haru-footer, .site-footer, .footer,
	nav, .navbar, .main-navigation, .haru-main-menu, .haru-mobile-header-wrap,
	.breadcrumb, .haru-breadcrumb, .haru-page-heading, .page-heading,
	.haru-page-title-wrapper, .haru-page-title-section,
	.haru-newsletter, [class*="newsletter"], [class*="popup"], [class*="cookie"],
	.haru-back-to-top, [id*="back-to-top"], [id*="tawk"], .tawk-min-container,
	.custom-quote-wrap, aside, .sidebar, .widget-area,
	.hp-legal-pdf, .no-print, #wpadminbar {
		display: none !important;
	}

	/* Reveal the stamped header. */
	.hp-legal-pdf-meta {
		display: block !important;
		margin: 0 0 1.4em;
		padding-bottom: .9em;
		border-bottom: 1px solid #bbb;
	}
	.hp-legal-pdf-title { font-size: 18pt; font-weight: 700; margin: 0 0 .35em; }
	.hp-legal-pdf-effective,
	.hp-legal-pdf-downloaded { font-size: 10pt; color: #444; margin: .12em 0; }

	/* Full-bleed, readable content. */
	html, body { background: #fff !important; }
	body { color: #000 !important; font-size: 12pt; line-height: 1.5; }
	main, .haru-page, .container, .container-fluid, .row,
	.page-content, .page-wrapper, .page-inner, .entry-content, [class*="col-"] {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		float: none !important;
	}

	/* Spell out link targets — legal best practice. */
	.entry-content a[href^="http"]::after,
	.page-inner a[href^="http"]::after {
		content: " (" attr( href ) ")";
		font-size: 9pt;
		color: #555;
		word-break: break-all;
	}

	a { color: #000 !important; text-decoration: underline; }
	@page { margin: 1.6cm; }
}
