/**
 * 3.7.14 — Center the footer copyright line and the legal-link row.
 *
 * The previous .foot-bottom layout was a horizontal flex row
 * (space-between), so the copyright paragraph sat on the left and
 * shrank beside the social icons. The copyright line also uses
 * &nbsp; around each middot, which stops the browser wrapping at
 * the separators and instead wraps inside the last phrase,
 * "Privacy Policy".
 *
 * This file works with the 3.7.14 footer.php markup, which wraps
 * each legal phrase in <span class="foot-legal-item">. The copyright
 * phrase is on its own centered row. The four following phrases sit
 * on a second centered row, evenly spaced, and wrap only between
 * phrases. Social icons sit under that row so the text can stay on
 * the true center of the footer.
 */

.site-footer .foot-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--space-4);
}

.site-footer .foot-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0;
	text-align: center;
	column-gap: 0;
	row-gap: 0.35em;
}

.site-footer .foot-legal-item {
	white-space: nowrap;
}

.site-footer .foot-legal-item a {
	white-space: nowrap;
}

/* Copyright on its own centered row; no middot after it. */
.site-footer .foot-legal-item:first-child {
	flex-basis: 100%;
	white-space: nowrap;
}

.site-footer .foot-legal-item:not(:first-child):not(:last-child)::after {
	content: "·";
	display: inline-block;
	margin: 0 0.75em;
}

.site-footer .foot-socials {
	justify-content: center;
}

/* At a 400px phone width the copyright phrase is slightly longer
   than the content area (about 352px after gutters). Let that one
   line wrap; keep both legal links on a single line. */
@media (max-width: 400px) {
	.site-footer .foot-legal-item:first-child {
		white-space: normal;
	}

	.site-footer .foot-legal-item a {
		white-space: nowrap;
	}
}
