/* Buckfield Partners — terms card (Sign Documents, email-matching display) */
.bfp-signed-badge {
	display: flex;
	align-items: flex-start;
	gap: .7em;
	padding: .85em 1.1em;
	margin: 0 0 1.25em;
	background: #e7efe9;
	border: 1px solid #1E3A2F;
	border-radius: 8px;
	color: #1E3A2F;
	font-size: 16px;
	line-height: 1.45;
}
.bfp-signed-badge-icon {
	flex: 0 0 auto;
	width: 1.4em;
	height: 1.4em;
	margin-top: .05em;
	border-radius: 50%;
	background: #1E3A2F;
	color: #f7f3ea;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .85em;
	font-weight: 700;
	line-height: 1;
	font-family: Arial, Helvetica, sans-serif;
}
.bfp-signed-badge-text {
	flex: 1 1 auto;
	min-width: 0;
}
.bfp-terms {
	border: 1px solid #d9d1c3;
	background: #f7f3ea;
	padding: 0;
	margin: 0 0 1.4em;
	border-radius: 8px;
	overflow: visible;
	max-height: none;
	box-shadow: 0 1px 2px rgba(30, 58, 47, .06);
}
.bfp-terms-doc {
	padding: 0 1.5em 1.5em;
	font-size: 16px;
	color: #1E3A2F;
}
.bfp-terms-doc::before {
	content: "";
	display: block;
	height: 6px;
	margin: 0 -1.5em 1.25em;
	background: #1E3A2F;
	border-radius: 8px 8px 0 0;
}
.bfp-terms-header {
	margin: 0 0 1.2em;
	padding: 0 0 1em;
	border-bottom: 1px solid #e4ddcf;
}
.bfp-terms-heading {
	margin: 0 0 .25em;
	color: #1E3A2F;
	font-size: 1.35em;
	font-weight: 600;
	line-height: 1.3;
}
.bfp-terms-version,
.bfp-terms-store,
.bfp-terms-meta {
	margin: 0;
	font-size: .95em;
	line-height: 1.45;
	color: #5a6b5a;
}
.bfp-terms-store {
	margin-top: .15em;
}
.bfp-terms-preamble {
	margin: 0 0 1.2em;
	line-height: 1.65;
}
.bfp-terms-preamble p {
	margin: 0 0 .8em;
}
.bfp-terms-preamble p:last-child {
	margin-bottom: 0;
}
.bfp-terms-preamble img {
	max-width: 90px;
	height: auto;
	float: right;
	margin: 0 0 .8em 1em;
}
.bfp-terms-preamble h1,
.bfp-terms-preamble h2,
.bfp-terms-preamble h3 {
	color: #1E3A2F;
	margin: 0 0 .6em;
	font-size: 1.15em;
	clear: none;
}
.bfp-terms-clauses {
	clear: both;
}
.bfp-terms-clause {
	margin: 0 0 1.15em;
	padding: 0 0 1.15em;
	border-bottom: 1px solid #e4ddcf;
	break-inside: avoid;
	page-break-inside: avoid;
}
.bfp-terms-clause:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}
.bfp-terms-clause-title {
	margin: 0 0 .35em;
	color: #1E3A2F;
	font-size: .95em;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .01em;
	font-family: Georgia, "Times New Roman", Times, serif;
}
.bfp-terms-clause-body,
.bfp-terms-body {
	font-size: 16px;
	line-height: 1.65;
	color: #1E3A2F;
}
.bfp-terms-clause-body p,
.bfp-terms-body p,
.bfp-terms-body--raw p {
	margin: 0 0 .6em;
}
.bfp-terms-clause-body p:last-child,
.bfp-terms-body p:last-child {
	margin-bottom: 0;
}
.bfp-terms-clause-body a,
.bfp-terms-preamble a,
.bfp-terms-body a {
	color: #1E3A2F;
	font-weight: 700;
	text-decoration: underline;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.bfp-terms-body--raw {
	line-height: 1.65;
}
.bfp-terms-body--raw h2 {
	color: #1E3A2F;
	margin: 0 0 .6em;
	font-size: 1.25em;
}

@media (max-width: 700px) {
	.bfp-terms-doc {
		padding: 0 1em 1.15em;
	}
	.bfp-terms-doc::before {
		margin-left: -1em;
		margin-right: -1em;
	}
	.bfp-terms-heading {
		font-size: 1.2em;
	}
	.bfp-signed-badge {
		padding: .75em .9em;
	}
	.bfp-terms-preamble {
		overflow-wrap: anywhere;
	}
	.bfp-terms-preamble img {
		float: none !important;
		display: block !important;
		margin: 0 0 .8em 0 !important;
		max-width: 90px;
		height: auto;
	}
}

@media print {
	.bfp-intro,
	.bfp-sign-form,
	.bfp-notice:not(.bfp-signed-badge) {
		display: none !important;
	}
	.bfp-wrap {
		background: #fff;
		border: 0;
		padding: 0;
		margin: 0;
		box-shadow: none;
	}
	.bfp-title {
		margin-bottom: .8em;
	}
	.bfp-signed-badge {
		background: #fff;
		border: 1px solid #1E3A2F;
		break-inside: avoid;
	}
	.bfp-terms {
		box-shadow: none;
		background: #fff;
		border: 1px solid #c8c0b2;
		break-inside: auto;
		max-height: none !important;
		overflow: visible !important;
	}
	.bfp-terms-clause {
		break-inside: avoid;
		page-break-inside: avoid;
	}
	.bfp-terms-clause-body a {
		font-weight: 700;
	}
	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-weight: 400;
		font-size: .85em;
		color: #5a6b5a;
		word-break: break-all;
	}
}
