/*
 * Public site (guide §5 footer + Appendix B legal pages). Builds on the child theme tokens and its footer
 * styles (.site-footer, .footer__*): only the new parts are styled here. Logical properties, mobile first.
 */

/* ---------- Footer: call-to-action bar ---------- */
.site-footer .footer__cta {
	max-inline-size: var(--container-max, 1300px);
	margin-inline: auto !important;
	padding-inline: var(--gutter, 20px) !important;
	padding-block-end: var(--space-xl, 3rem) !important;
	margin-block-end: var(--space-xl, 3rem);
	border-block-end: 1px solid rgba(255, 255, 255, 0.12);
	gap: var(--space-md, 1.5rem);
	justify-content: space-between !important;
}

/* The theme's .container clearfix pseudo-elements would act as extra flex items (pushing the button inward). */
.site-footer .footer__cta::before,
.site-footer .footer__cta::after {
	content: none !important;
	display: none !important;
}

.site-footer .footer__cta > .elementor-widget-button {
	inline-size: auto !important;
	flex: none;
}

.site-footer .footer__cta-copy {
	gap: 8px;
	inline-size: auto !important;
}

body .site-footer .footer__cta-title .elementor-heading-title {
	margin: 0;
	font-size: var(--fs-h2, 2rem) !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	color: var(--color-on-dark, #f4f3f8) !important;
}

.site-footer .footer__cta-text,
.site-footer .footer__cta-text p {
	margin: 0 !important;
	font-size: 1.05rem !important;
	line-height: 1.7 !important;
	color: var(--color-on-dark-muted, #b9bad5) !important;
}

body .site-footer .footer__cta-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-block-size: 56px;
	padding-block: 14px !important;
	padding-inline: 34px !important;
	border: 0 !important;
	border-radius: var(--radius-pill, 999px) !important;
	background: #c9b8f6 !important;
	box-shadow: none !important;
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	color: var(--color-primary, #1e2053) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body .site-footer .footer__cta-btn .elementor-button::after {
	content: "←";
	font-weight: 700;
}

[dir="ltr"] .site-footer .footer__cta-btn .elementor-button::after {
	content: "→";
}

body .site-footer .footer__cta-btn .elementor-button:hover {
	transform: translateY(-2px);
	background: #d8cbfa !important;
	box-shadow: 0 12px 28px rgba(201, 184, 246, 0.25) !important;
}

/* ---------- Footer: brand + three columns ---------- */
@media (min-width: 768px) {
	.site-footer .footer__grid {
		grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr !important;
	}

	.site-footer .footer__contact p {
		flex-wrap: nowrap;
		white-space: nowrap;
	}
}

body .site-footer .footer__title .elementor-heading-title {
	color: #c9b8f6 !important;
}

.site-footer .footer__contact p {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px !important;
	font-size: var(--fs-body, 1rem);
	line-height: 1.6;
	color: var(--color-on-dark-muted, #b9bad5) !important;
}

.site-footer .footer__contact strong {
	font-weight: 800;
	color: #c9b8f6;
}

.site-footer .footer__contact a {
	color: var(--color-on-dark-muted, #b9bad5) !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer .footer__contact a:hover {
	color: var(--color-secondary, #e6d8ea) !important;
}

/* ---------- Footer: bottom bar (row 1: copyright · links; row 2: disclaimer) ---------- */
.site-footer .footer__bottom .footer__bottom-links a {
	color: var(--color-on-dark-muted, #b9bad5) !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer .footer__bottom .footer__bottom-links a:hover {
	color: var(--color-secondary, #e6d8ea) !important;
}

.site-footer .footer__bottom .footer__disclaimer {
	flex-basis: 100%;
}

.site-footer .footer__bottom .footer__disclaimer p {
	font-size: 0.82rem !important;
	opacity: 0.85;
}

@media (max-width: 767px) {
	.site-footer .footer__cta {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center;
	}

	.site-footer .footer__cta-copy {
		align-items: center;
	}

	.site-footer .footer__contact p {
		justify-content: center;
	}

	.site-footer .footer__bottom {
		justify-content: center !important;
		text-align: center;
	}
}

/* ---------- Legal pages ---------- */
.legal-page {
	max-inline-size: 860px !important;
	margin-inline: auto !important;
	padding-block: clamp(40px, 6vw, 80px) !important;
	padding-inline: var(--gutter, 20px) !important;
	gap: 0;
}

.legal-page .elementor-heading-title {
	text-align: start !important;
}

body .legal-page .legal-page__title .elementor-heading-title {
	margin-block-end: 12px;
	font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: var(--color-primary, #1e2053) !important;
}

.legal-page .legal-page__intro,
.legal-page .legal-page__intro p {
	margin-block-end: 18px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	color: var(--color-accent, #4a45b5) !important;
}

body .legal-page .legal-page__h .elementor-heading-title {
	margin-block: 26px 10px;
	font-size: 1.3rem !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
	color: var(--color-primary, #1e2053) !important;
}

.legal-page .legal-page__text,
.legal-page .legal-page__text p {
	font-size: 1.02rem !important;
	font-weight: 400 !important;
	line-height: 1.9 !important;
	color: #3d3f5c !important;
}

.legal-page .legal-page__text p {
	margin-block: 0 10px !important;
}
