/* Shared footer with a compact mobile layout. */
.site-footer.ifr-footer {
	padding: var(--section-padding) 0 var(--space-md);
	color: #fff;
	background: var(--deep);
}

.footer-top {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	padding-bottom: var(--space-lg);
}

.footer-brand {
	flex-shrink: 0;
}

.footer-brand a {
	display: block;
}

.footer-brand img {
	width: 112px;
	height: 46px;
	object-fit: contain;
}

.footer-tagline {
	font-size: var(--type-body);
	font-weight: 800;
	line-height: var(--leading-body);
}

.footer-tagline > span {
	color: var(--yellow);
}

.footer-navigation {
	min-width: 0;
	margin-left: auto;
	color: #c0c6d0;
	font-size: var(--type-label);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ifr-footer a {
	text-decoration: none;
	overflow-wrap: anywhere;
}

.footer-menu a,
.footer-legal a,
.footer-closing-line {
	text-transform: capitalize;
}

.ifr-footer a:hover {
	color: var(--yellow);
}

.ifr-footer :focus-visible {
	outline-color: var(--yellow);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid #ffffff1f;
	color: #8d96a6;
	font-size: var(--type-label);
}

.footer-bottom > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
}

@media (max-width: 900px) {
	.footer-top {
		flex-wrap: wrap;
	}

	.footer-navigation {
		width: 100%;
		margin-left: 0;
	}

	.footer-closing-line {
		display: none;
	}
}

@media (max-width: 640px) {
	.site-footer.ifr-footer {
		padding: 32px 0 24px;
		text-align: center;
	}

	.footer-top {
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding-bottom: 20px;
	}

	.footer-brand img {
		width: 104px;
		height: 43px;
	}

	.ifr-footer .footer-tagline {
		margin-top: 12px;
		font-size: 13px;
		line-height: 1.6;
		overflow-wrap: anywhere;
	}

	.footer-tagline br {
		display: none;
	}

	.footer-navigation {
		width: 100%;
		max-width: 280px;
		margin: 16px auto 0;
	}

	.footer-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px 24px;
	}

	.footer-menu a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 28px;
		padding-block: 4px;
		line-height: 1.5;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding-top: 16px;
		font-size: 12px;
	}

	.footer-legal {
		order: 0;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-items: center;
		gap: 4px 24px;
		font-size: 13px;
	}

	.footer-legal a {
		position: relative;
		display: inline-flex;
		align-items: center;
		min-height: 28px;
	}

	.footer-legal a + a::before {
		display: none;
	}

	.footer-copyright {
		order: 1;
	}
}
