/**
 * Footer section — Figma node 944:573 (Footer Section) inside FINIX - Hjem.
 *
 * Outer bar is fluid (width: 100%). Inner row max-width is --finix-nav-width
 * (1680px), same as NAV — not --finix-content-width (1280px).
 *
 * @package Staging_Finix_NO
 */

.site-footer {
	width: 100%;
	background-color: var(--color-bg-primary);
	/*
	 * Top stroke measured on 944:573 as 0.5px #E9EBEC.
	 * Figma has no named color style for this stroke — not invented as a token.
	 */
	border-top: 0.5px solid #e9ebec;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: var(--finix-nav-width);
	min-height: 150px;
	margin: 0 auto;
	padding: 1.5rem 1rem 1.25rem;
}

.site-footer__logo {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.site-footer__logo img {
	width: 128px;
	height: 45px;
	object-fit: contain;
}

.site-footer__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	margin-top: 1rem;
}

.site-footer__col {
	width: 100%;
	min-width: 0;
}

/* Mobile: logo → nav → copyright → legal */
.site-footer__col--center {
	order: 1;
}

.site-footer__col--left {
	order: 2;
}

.site-footer__col--right {
	order: 3;
}

.site-footer__copyright,
.site-footer__org {
	margin: 0;
	/*
	 * 13px / Regular / 20px line-height measured on 944:577 and 944:586.
	 * No Figma text-style name on these nodes.
	 */
	font-family: var(--finix-font-family);
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--color-bg-tertiary);
}

.site-footer__copyright {
	text-align: center;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__link {
	color: var(--color-bg-tertiary);
	text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
	color: var(--color-accent);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin: 0;
}

.site-footer__legal-link {
	/*
	 * Measured #B3B9BE on 944:589. Figma labeled this --color-txt-body, but
	 * NAV-confirmed --color-txt-body is #999999. Using --color-border, which
	 * is the named token whose value matches the measured hex.
	 */
	font-family: var(--finix-font-family);
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--color-border);
	text-decoration: none;
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible {
	color: var(--color-accent);
}

.site-footer__legal-divider {
	display: inline-block;
	width: 1px;
	height: 9px;
	background-color: var(--color-accent);
}

@media (min-width: 768px) {
	.site-footer__inner {
		padding-inline: 1.5rem;
	}

	.site-footer__col--left,
	.site-footer__col--center,
	.site-footer__col--right {
		order: 0;
	}

	.site-footer__copyright {
		text-align: left;
	}

	.site-footer__links {
		gap: 1.5rem 2.5rem;
	}
}

@media (min-width: 1025px) {
	.site-footer__inner {
		min-height: 150px;
		padding: 22.5px 1.5rem 0;
	}

	.site-footer__row {
		flex-direction: row;
		align-items: center;
		min-height: 70px;
		margin-top: 12px;
		gap: 0;
	}

	.site-footer__col {
		flex: 1 1 560px;
		max-width: 560px;
		min-height: 48px;
	}

	.site-footer__col--left {
		display: flex;
		align-items: center;
	}

	.site-footer__col--center {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-footer__col--right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.site-footer__copyright,
	.site-footer__org,
	.site-footer__link,
	.site-footer__legal-link {
		white-space: nowrap;
	}

	.site-footer__links {
		flex-wrap: nowrap;
		gap: 40px;
	}

	.site-footer__legal {
		justify-content: flex-end;
		gap: 4px;
	}
}

@media (min-width: 1680px) {
	.site-footer__inner {
		padding-inline: 0;
	}
}
