/*
 * FLO — footer (design/source/flo-nav.js, FloFooter).
 */

.c-footer {
	background: var(--navy);
	color: var(--paper);
	padding: 72px var(--gutter) 32px;
	overflow-wrap: anywhere;
}

.c-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}

.c-logo--footer {
	display: flex;
}

.c-footer__mission {
	/* 18px in the design plus the line-box gap under its inline-flex lockup */
	margin: 23px 0 0;
	max-width: 34ch;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .65);
}

.c-footer__title {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
}

.c-footer__links {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.c-footer__links li {
	display: block;
}

.c-footer__link {
	display: block;
	padding-block: 4px;
	color: rgba(255, 255, 255, .8);
	text-decoration: none;
	line-height: 1.3;
}

.c-footer__link:hover {
	color: var(--gold);
}

.c-footer__contact {
	margin-top: 16px;
	font-style: normal;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}

.c-footer__mail {
	color: rgba(255, 255, 255, .88);
	text-decoration: none;
	border-bottom: 1.5px solid rgba(245, 163, 4, .5);
}

.c-footer__mail:hover {
	color: var(--paper);
	border-bottom-color: var(--gold);
}

/* "Where to find us" */
.c-footer__map {
	margin-top: 44px;
}

.c-footer__map-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 22px;
	margin-bottom: 16px;
}

.c-footer__map-sub {
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .55);
}

/* The map block is the map component (media.css); the footer only places it. */

/* Bottom row */
.c-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-weight: 500;
	font-size: 13px;
	line-height: 1;
	color: rgba(255, 255, 255, .55);
}

/* WP-10h: "Website donated by kleine herzen · developed by Wekey". */
.c-footer__credit {
	line-height: 1.5;
}

/* WP-10j: underlined — in a line of text a link must not be told apart by its colour alone (axe link-in-text-block) */
.c-footer__credit-link {
	color: rgba(255, 255, 255, .7);
	text-decoration: underline;
	text-decoration-color: rgba(245, 163, 4, .6);
	text-underline-offset: 3px;
}

.c-footer__credit-link:hover {
	color: var(--gold);
}

.c-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.c-footer__legal-link {
	color: rgba(255, 255, 255, .7);
	text-decoration: none;
}

.c-footer__legal-link:hover {
	color: var(--gold);
}

.c-footer__divider {
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, .2);
	flex: none;
}

.c-footer__lang {
	display: inline-flex;
	gap: 18px;
}

.c-footer__lang-on {
	color: var(--paper);
}

@media (max-width: 768px) {
	.c-footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* the design gives every footer link a 4px tap margin on phones */
	.c-footer__legal-link,
	.c-footer__mail {
		padding-block: 4px;
	}

}

/* The lockup keeps the brand book's size (44px tall, 225px wide); when the
   first footer column is narrower than that (tablet widths), it scales down
   proportionally instead of being squeezed by max-width: 100%. */
.c-footer .c-logo__lockup {
	height: auto;
	width: 225px;
	max-width: 100%;
}
