/* audit-1/2 (footer node 557:523 / 558:628): the footer is light, not inverted — Figma frame fill
   is --c-surface-alt (#f3eee8), with ink/muted text, not #1a1a1a with on-dark opacities. */
.onsil-footer {
	background-color: var(--c-surface-alt);
	color: var(--c-ink);
	padding-block: 48px;
}

.onsil-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 64px; /* audit-2: Figma column gap is 64, not 24 */
	flex-wrap: wrap;
}

.onsil-footer__logo {
	display: flex;
	align-items: center;
	font-family: var(--f-display), serif;
	font-size: 20px;
	letter-spacing: .05em;
	color: var(--c-ink);
	white-space: nowrap;
}

.onsil-footer__logo img,
.onsil-footer__logo svg {
	height: 40px;
	width: auto;
}

.onsil-footer__legal {
	flex: 1;
	min-width: 280px;
}

.onsil-footer__name {
	font-family: var(--f-ui), sans-serif;
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 8px;
	color: var(--c-ink);
}

.onsil-footer__line {
	font-family: var(--f-ui), sans-serif;
	font-size: 13px;
	line-height: 1.38; /* Figma-measured (~1.38), was 1.7 — band-residual review #1 */
	color: var(--c-muted);
}

.onsil-footer__policy-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
	font-family: var(--f-ui), sans-serif;
	font-size: 13px;
	line-height: 1.38;
	color: var(--c-muted);
}

.onsil-footer__policy-links a {
	color: inherit;
}

@media (hover: hover) {
	.onsil-footer__policy-links a:hover {
		color: var(--c-ink);
	}
}

.onsil-footer__copyright {
	font-family: var(--f-ui), sans-serif;
	font-size: 13px;
	color: var(--c-muted);
	white-space: nowrap;
}

/* fix-3 (audit HIGH #3): footer.php now emits both legal-line variants — .onsil-footer__line-desktop
   (the 2-line grouped string with its deliberate <br>) and .onsil-footer__line-mobile (the
   legalMobile flow, which avoids the desktop string wrapping 4-deep mid-phrase at 375px). CSS picks
   one per breakpoint; default (desktop-first) shows the desktop variant. */
.onsil-footer__line-mobile {
	display: none;
}

@media (max-width: 768px) {
	.onsil-footer__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.onsil-footer__copyright {
		white-space: normal;
	}

	.onsil-footer__line-desktop {
		display: none;
	}

	.onsil-footer__line-mobile {
		display: block;
	}

	.onsil-footer__policy-links {
		justify-content: center;
	}

	/* global.md §3: M footer height target is 220px — the 48px desktop padding-block (same on
	   both breakpoints until now) was the main contributor to the +65px mobile overflow scoped to
	   every page's footer. */
	.onsil-footer {
		padding-block: 32px;
	}
}
