/**
 * BehetMiad — Legal & FAQ pages
 */

body.behetmiad-site.bm-legal-page .entry-header {
	display: none;
}

body.behetmiad-site.bm-legal-page .site-content {
	padding-top: 24px;
	padding-bottom: 16px;
}

body.behetmiad-site.bm-legal-page .ast-container,
body.behetmiad-site.bm-legal-page .site-content > .ast-container {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.bm-legal .bm-page {
	max-width: 820px;
	margin-inline: auto;
}

.bm-legal__head {
	margin-bottom: 28px;
}

.bm-legal__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.84rem;
	color: var(--bm-muted);
}

.bm-legal__breadcrumbs a {
	color: var(--bm-muted);
	text-decoration: none !important;
}

.bm-legal__breadcrumbs a:hover {
	color: var(--bm-blue);
}

.bm-legal__title {
	margin: 0 0 10px;
	font-size: clamp(1.65rem, 2.8vw, 2.1rem);
	font-weight: 800;
	line-height: 1.35;
	overflow: visible;
	max-width: 100%;
	word-wrap: break-word;
}

.bm-legal__desc {
	margin: 0;
	max-width: 720px;
	color: var(--bm-muted);
	font-size: 0.95rem;
	line-height: 1.8;
}

.bm-legal__content {
	max-width: none;
}

.bm-legal__prose h2 {
	margin: 28px 0 12px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--bm-text);
}

.bm-legal__prose p,
.bm-legal__prose li {
	color: var(--bm-muted);
	font-size: 0.92rem;
	line-height: 1.85;
}

.bm-legal__prose ul,
.bm-legal__prose ol {
	margin: 0 0 16px;
	padding-inline-start: 22px;
}

.bm-legal__prose a {
	color: var(--bm-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bm-legal__prose a:hover {
	color: var(--bm-blue);
}

.bm-legal-page--faq .bm-faq {
	max-width: none;
	margin-top: 0;
}

/* FAQ accordion — same single-panel look as homepage. */
body.bm-faq-page .elementor-widget-html,
body.bm-faq-page .elementor-widget-html > .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
}

.bm-faq {
	max-width: 760px;
	margin: 28px auto 0;
	width: 100%;
	background: #fff;
	border: 1px solid #e2e8f6;
	border-radius: 16px;
	overflow: hidden;
}

.bm-faq details {
	border: 0;
	border-bottom: 1px solid #e8ecf4;
	border-radius: 0;
	margin: 0;
	background: transparent;
	overflow: hidden;
}

.bm-faq details:last-child {
	border-bottom: 0;
}

.bm-faq summary {
	padding: 16px 18px 16px 44px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	position: relative;
	font-size: 0.94rem;
	color: #17213b;
	line-height: 1.5;
}

.bm-faq summary::-webkit-details-marker {
	display: none;
}

.bm-faq summary::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 12px;
	height: 12px;
	transform: translateY(-50%) rotate(0deg);
	background-image:
		linear-gradient(#44506a, #44506a),
		linear-gradient(#44506a, #44506a);
	background-size: 12px 1.5px, 1.5px 12px;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.28s ease;
	pointer-events: none;
}

.bm-faq details.is-open summary::after,
.bm-faq details[open]:not(.is-ready) summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.bm-faq details[open] summary,
.bm-faq details.is-open summary {
	color: #3d5cb8;
}

.bm-faq__body {
	overflow: hidden;
	height: 0;
	transition: height 0.28s ease;
}

.bm-faq details.is-ready:not([open]) .bm-faq__body,
.bm-faq details:not([open]) .bm-faq__body {
	height: 0;
}

.bm-faq details[open]:not(.is-ready) .bm-faq__body {
	height: auto;
}

.bm-faq details p {
	padding: 0 18px 16px 44px;
	margin: 0;
	color: #5b6780;
	line-height: 1.75;
	font-size: 0.9rem;
	background: transparent;
}

@media (prefers-reduced-motion: reduce) {
	.bm-faq__body,
	.bm-faq summary::after {
		transition: none;
	}
}


@media (min-width: 1024px) {
	body.behetmiad-site.bm-legal-page .site-content {
		padding-bottom: 32px;
	}
}

/* Hello Elementor: hide duplicate theme title on legal/FAQ */
body.bm-legal-page .page-header,
body.bm-faq-page .page-header,
body.bm-legal-page .entry-title.page-header,
body.bm-legal-page header.page-header {
	display: none !important;
}

/* Never hide the legal document itself (Astra rule targets .entry-content). */
body.behetmiad-site.bm-legal-page .entry-content:has(.bm-legal),
body.bm-legal-page .page-content:has(.bm-legal) {
	display: block !important;
}
body.bm-legal-page .page-content,
body.bm-faq-page .page-content {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.bm-legal-page .site-main,
body.bm-faq-page .site-main {
	max-width: none !important;
}

/* Tokens used by legal/FAQ layout */
.bm-legal, .bm-faq-page .bm-legal, body.bm-legal-page {
	--bm-white:#fff;
	--bm-surface:#fff;
	--bm-surface-2:#eef0f3;
	--bm-text:#1a1a1a;
	--bm-muted:#52525b;
	--bm-border:#e8eaed;
	--bm-blue-light:#eef1fb;
	--bm-blue:#4f6fcf;
	--bm-blue-dark:#3d5cb8;
	--bm-radius-sm:12px;
	--bm-container-pad:16px;
	color: var(--bm-text);
}
.bm-legal {
	padding: 24px 0 48px;
	width: 100%;
}
