/* Site footer: stacked mobile layout (frame 541:390) by default, four columns (frame 7:400) from 1200px. */

.site-footer {
	background: var(--color-primary);
	color: var(--color-border);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 21px;
	padding-top: 29px;
	padding-bottom: var(--space-80);
}

.site-footer__top {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-24);
}

/* Phones: the brand block spans the row, the first two link columns share a row, the third goes below. */
.site-footer__brand,
.site-footer__column:nth-child(n + 4) {
	grid-column: 1 / -1;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-24);
}

.site-footer__logo,
.site-footer__logo:hover {
	display: block;
	color: var(--color-accent);
}

.site-footer__logo .logo {
	width: 215.99px;
	height: auto;
	fill: currentColor;
}

.site-footer__description {
	max-width: 420px;
	font-size: 13px;
	line-height: 1.6;
}

.site-footer__social {
	gap: var(--space-16);
}

.site-footer__column {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.site-footer__heading {
	color: var(--color-accent);
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links li {
	line-height: 16px;
}

.site-footer__links a {
	color: var(--color-footer-link);
	font-size: 13px;
	line-height: 16px;
}

/* Latest news column: article titles wrap to two lines at most. */
.site-footer__article a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.site-footer a:hover {
	color: var(--color-accent);
}

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-16);
	padding-top: var(--space-24);
	border-top: 1px solid var(--color-footer-divider);
	font-size: 11px;
	line-height: 14px;
	text-align: center;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-8) var(--space-16);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.site-footer__top {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-40) 60px;
	}

	.site-footer__brand,
	.site-footer__column:nth-child(n + 4) {
		grid-column: auto;
	}
}

@media (min-width: 1200px) {
	.site-footer__inner {
		gap: var(--space-80);
		padding-top: var(--space-100);
		padding-bottom: 60px;
	}

	.site-footer__top {
		grid-template-columns: repeat(4, 1fr);
		gap: 60px;
	}

	.site-footer__column,
	.site-footer__links {
		gap: 20px;
	}

	.site-footer__heading {
		letter-spacing: 1.5px;
	}

	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		padding-top: var(--space-40);
		font-size: 12px;
		line-height: 15px;
		text-align: left;
	}

	.site-footer__legal {
		gap: var(--space-24);
	}
}
