/* Shared NET Success footer. Kept isolated from page-specific layouts. */
.ns-footer {
	--ns-primary: #3B1E54;
	--ns-secondary: #F4B6A6;
	--ns-soft: #FDF1ED;
	--ns-text: #111111;
	--ns-white: #FFFFFF;
	--ns-font-heading: 'Outfit', sans-serif;
	--ns-font-body: 'Plus Jakarta Sans', sans-serif;
	background: var(--ns-soft);
	border-top: 1px solid rgba(59, 30, 84, 0.12);
	color: var(--ns-text);
	font-family: var(--ns-font-body);
}

.ns-footer,
.ns-footer *,
.ns-footer *::before,
.ns-footer *::after {
	box-sizing: border-box;
}

.ns-footer .ns-container {
	width: min(1220px, calc(100% - 64px));
	margin-right: auto;
	margin-left: auto;
}

.ns-footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1.28fr) repeat(3, minmax(0, 0.9fr));
	gap: clamp(24px, 3vw, 40px);
	padding-top: 72px;
	padding-bottom: 60px;
}

.ns-footer-main--policies-pending {
	grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.9fr) minmax(0, 1fr);
}

.ns-footer-brand,
.ns-footer-column {
	min-width: 0;
}

.ns-footer-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	color: var(--ns-primary);
	font-family: var(--ns-font-heading);
	font-size: 27px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
}

.ns-footer-wordmark .ns-brand-logo {
	display: block;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	border-radius: 50%;
	object-fit: contain;
}

.ns-footer-wordmark .ns-brand-name {
	color: var(--ns-primary);
	font-weight: 700;
}

.ns-footer-brand p,
.ns-footer-contact p {
	max-width: 360px;
	margin: 0;
	color: var(--ns-text);
	font-size: 15px;
	line-height: 1.75;
}

.ns-footer-column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

.ns-footer-column h2 {
	margin: 2px 0 7px;
	color: var(--ns-primary);
	font-family: var(--ns-font-heading);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.ns-footer-column a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-width: 100%;
	padding-block: 7px;
	color: var(--ns-text);
	font-family: var(--ns-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

.ns-footer-column a:hover,
.ns-footer-column a:focus-visible {
	color: var(--ns-primary);
	text-decoration: underline;
	text-decoration-color: var(--ns-secondary);
	text-decoration-thickness: 2px;
}

.ns-footer-column a:focus-visible,
.ns-footer-wordmark:focus-visible {
	outline: 3px solid var(--ns-primary);
	outline-offset: 3px;
	border-radius: 3px;
}

.ns-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 64px;
	padding-top: 15px;
	padding-bottom: 15px;
	border-top: 1px solid rgba(59, 30, 84, 0.16);
}

.ns-footer-bottom p {
	margin: 0;
	color: var(--ns-text);
	font-family: var(--ns-font-body);
	font-size: 13px;
	line-height: 1.5;
}

.ns-footer [id] {
	scroll-margin-top: 28px;
}

body #ast-scroll-top {
	border: 1px solid #F4B6A6;
	background-color: #3B1E54 !important;
	color: #FFFFFF !important;
}

body #ast-scroll-top:hover,
body #ast-scroll-top:focus-visible {
	background-color: #3B1E54 !important;
	color: #FFFFFF !important;
}

@media (max-width: 1024px) {
	.ns-footer .ns-container {
		width: min(900px, calc(100% - 48px));
	}

	.ns-footer-main,
	.ns-footer-main--policies-pending {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 35px 28px;
		padding-top: 54px;
		padding-bottom: 46px;
	}

	.ns-footer-main--policies-pending .ns-footer-contact {
		grid-column: 1 / -1;
	}

	.ns-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}
}

@media (max-width: 600px) {
	.ns-footer .ns-container {
		width: calc(100% - 36px);
	}

	.ns-footer-main,
	.ns-footer-main--policies-pending {
		grid-template-columns: minmax(0, 1fr);
		gap: 27px;
		padding-top: 42px;
		padding-bottom: 36px;
	}

	.ns-footer-wordmark {
		gap: 12px;
		font-size: 24px;
	}

	.ns-footer-wordmark .ns-brand-logo {
		width: 64px;
		height: 64px;
		flex-basis: 64px;
	}

	.ns-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
		padding-top: 14px;
		padding-bottom: 16px;
	}

	.ns-footer {
		padding-bottom: 64px;
	}
}

@media (max-width: 359px) {
	.ns-footer .ns-container {
		width: calc(100% - 32px);
	}
}
