/* Figma 136:402 / 134:162 — Footer 1440×649
 *
 * IMPORTANT: do NOT use transform for layout centering.
 * data-qnd-animate also sets transform and would override it
 * (was pushing CTA to mid-right and clipping the Connect button).
 */

.qnd-footer {
	position: relative;
	width: 100%;
	background: var(--qnd-darkblue-500);
	overflow: hidden;
	color: #fff;
	letter-spacing: 0;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.qnd-footer :where(p, a) {
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0;
}

.qnd-footer__inner {
	position: relative;
	width: 100%;
	max-width: var(--qnd-page-width);
	height: 649px;
	margin: 0 auto;
}

/* ---- CTA: text left + button right ---- */

.qnd-footer__cta {
	position: absolute;
	left: 0;
	right: 0;
	top: 59px;
	width: 1116px;
	max-width: calc(100% - 48px);
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--qnd-space-8);
	z-index: 2;
	box-sizing: border-box;
}

.qnd-footer__cta-text {
	margin: 0;
	max-width: 500px;
	flex: 1 1 auto;
	color: #fff;
	font-family: var(--qnd-font-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 0;
	overflow-wrap: break-word;
}

.qnd-footer__cta .qnd-btn-ghost {
	flex: 0 0 auto;
	border-color: #f7f7f7;
	color: #f5f5f5;
	white-space: nowrap;
}

/* ---- Nav centered ---- */

.qnd-footer__links {
	position: absolute;
	left: 0;
	right: 0;
	top: 252px;
	display: flex;
	justify-content: center;
	gap: 33px;
	align-items: flex-start;
	z-index: 2;
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: var(--qnd-font-sans);
	font-weight: 400;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	font-variation-settings: "wght" 400;
	white-space: nowrap;
}

.qnd-footer__links a {
	color: inherit;
	text-decoration: none;
	position: relative;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wght" 400;
	transition: color 0.25s ease;
}

.qnd-footer__links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.qnd-footer__links a:hover,
.qnd-footer__links a:focus-visible {
	color: var(--qnd-skyblue-500);
}

.qnd-footer__links a:hover::after,
.qnd-footer__links a:focus-visible::after {
	transform: scaleX(1);
}

/* ---- Watermark ---- */

.qnd-footer__watermark {
	position: absolute;
	top: 28.66%;
	right: 11.25%;
	bottom: 19.46%;
	left: 76.04%;
	pointer-events: none;
	z-index: 0;
}

.qnd-footer__watermark img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: right center;
}

/* ---- Contact: content-left = 50% - 558px (align CTA) ---- */

.qnd-footer__contact {
	position: absolute;
	left: calc(50% - 558px);
	top: 349px;
	width: 261px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--qnd-space-2);
	z-index: 2;
}

.qnd-footer__contact a {
	margin: 0;
	color: #fff;
	text-decoration: none;
	font-family: var(--qnd-font-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: 0;
	transition: color 0.25s ease;
}

.qnd-footer__contact a:hover,
.qnd-footer__contact a:focus-visible {
	color: var(--qnd-skyblue-500);
}

/* ---- Logo centered ---- */

.qnd-footer__logo {
	position: absolute;
	left: 0;
	right: 0;
	top: 342px;
	width: 272px;
	height: 85.436px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	gap: 9.41px;
	pointer-events: none;
	z-index: 2;
}

.qnd-footer__logo-symbol {
	width: 95.558px;
	height: 85.436px;
	position: relative;
	flex: 0 0 auto;
	overflow: hidden;
}

.qnd-footer__logo-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 10.979px;
	align-items: flex-start;
	width: 157.622px;
	flex: 0 0 auto;
}

.qnd-footer__logo-text {
	width: 70.1px;
	height: 30.209px;
	position: relative;
}

.qnd-footer__logo-sub {
	width: 141.938px;
	height: 28.544px;
	position: relative;
}

.qnd-footer__logo-symbol img,
.qnd-footer__logo-text img,
.qnd-footer__logo-sub img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: left center;
	display: block;
}

/* ---- Copyright centered ---- */

.qnd-footer__copyright {
	position: absolute;
	left: 0;
	right: 0;
	top: 541px;
	margin: 0;
	z-index: 2;
	color: #fff;
	font-family: var(--qnd-font-sans);
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0;
	font-variation-settings: "wght" 400;
	text-align: center;
	white-space: nowrap;
}

.qnd-footer .qnd-btn-ghost {
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wght" 400;
	letter-spacing: 0;
}

/* ---- Back to top ---- */

.qnd-footer__back-top {
	position: absolute;
	right: 52px;
	top: 551px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 2;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.qnd-footer__back-top:hover,
.qnd-footer__back-top:focus-visible {
	opacity: 0.75;
	transform: translateY(-3px);
}

.qnd-footer__back-top:active {
	transform: translateY(0);
}

.qnd-footer__back-top img {
	width: 40px;
	height: 40px;
	max-width: none;
	object-fit: contain;
	display: block;
}

/* ---- Tablet / mobile ---- */

@media (max-width: 1200px) {
	.qnd-footer__contact {
		left: 24px;
	}
}

@media (max-width: 1100px) {
	.qnd-footer__inner {
		height: auto;
		min-height: 0;
		padding: 48px 24px 72px;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 40px;
	}

	.qnd-footer__cta,
	.qnd-footer__links,
	.qnd-footer__contact,
	.qnd-footer__logo,
	.qnd-footer__copyright,
	.qnd-footer__back-top {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin-left: 0;
		margin-right: 0;
	}

	.qnd-footer__cta {
		flex-direction: column;
		align-items: center;
		gap: var(--qnd-space-6);
	}

	.qnd-footer__cta-text {
		width: 100%;
	}

	.qnd-footer__links {
		justify-content: center;
		flex-wrap: wrap;
		white-space: normal;
	}

	.qnd-footer__watermark {
		display: none;
	}

	.qnd-footer__contact {
		width: auto;
		align-items: center;
	}

	.qnd-footer__logo {
		width: 272px;
		height: 85.436px;
		margin-left: auto;
		margin-right: auto;
	}

	.qnd-footer__copyright {
		white-space: normal;
		text-align: center;
	}

	.qnd-footer__back-top {
		position: absolute;
		right: 24px;
		bottom: 24px;
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 768px) {
	.qnd-footer__inner {
		padding: 40px 16px 72px;
		gap: 32px;
	}

	.qnd-footer__cta-text {
		font-size: 15px;
		line-height: 24px;
	}

	.qnd-footer__links {
		font-size: 14px;
		line-height: 20px;
		gap: 20px;
	}

	.qnd-footer__contact a {
		font-size: 16px;
		line-height: 24px;
	}

	.qnd-footer__logo {
		width: 220px;
		height: 69px;
		gap: 8px;
	}

	.qnd-footer__logo-symbol {
		width: 72px;
		height: 64px;
	}

	.qnd-footer__logo-text-wrap {
		width: auto;
		gap: 8px;
	}

	.qnd-footer__logo-text {
		width: 56px;
		height: 24px;
	}

	.qnd-footer__logo-sub {
		width: 114px;
		height: 23px;
	}

	.qnd-footer__copyright {
		font-size: 12px;
		line-height: 18px;
	}

	.qnd-footer__back-top {
		right: 16px;
		bottom: 16px;
	}
}