/* The site footer sits flush against the page content. WordPress applies the
   top-level block gap to every direct child of .wp-site-blocks, which left a
   strip of page background showing between the last section and the footer. */
:where(.wp-site-blocks) > footer {
	margin-block-start: 0;
}

.tcc-site-footer {
	box-sizing: border-box;
	min-height: 29.6875rem;
	padding: 4rem 2rem 2rem;
	background-color: var(--wp--preset--color--footer-surface);
	color: var(--wp--preset--color--footer-link);
}

.tcc-site-footer .tcc-footer-inner {
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	width: 100%;
}

.tcc-footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3rem;
}

/*
 * The group uses WordPress flow layout, which injects margin-block-start on
 * every child after the first (the default block gap). On this grid that
 * pushes columns 2-4 down and breaks top alignment, so neutralise it here and
 * let the grid `gap` own all spacing. Higher specificity than core's
 * :where() layout rule, so no !important is needed.
 */
.tcc-footer-cols > * {
	margin-block-start: 0;
}

.tcc-footer-col__heading {
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--cyan);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.69rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tcc-footer-brand__logo {
	display: block;
	height: auto;
	margin-bottom: 1rem;
	max-width: 2.5rem;
}

.tcc-footer-brand__tagline {
	color: var(--wp--preset--color--footer-link);
	font-size: 0.7475rem;
	line-height: 1.65;
	margin: 0 0 1.5rem;
	max-width: 19rem;
}

.tcc-footer-col--company .tcc-footer-col__heading {
	margin-bottom: 1.5rem;
}

.tcc-footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcc-footer-col a {
	display: block;
	padding: 2px 0;
	color: var(--wp--preset--color--footer-link);
	font-size: 0.7475rem;
	line-height: 1.75;
	text-decoration: none;
}

.tcc-footer-col a:hover {
	color: var(--wp--preset--color--paper);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--teal);
}

.tcc-footer-col a:focus-visible,
.tcc-footer-policy a:focus-visible {
	outline: 3px solid var(--wp--preset--color--cyan);
	outline-offset: 3px;
	transition: none;
}

.tcc-footer-legal {
	align-items: center;
	border-top: 1px solid var(--wp--preset--color--footer-divider);
	display: flex;
	gap: 1rem 2rem;
	justify-content: space-between;
	margin-top: 3rem;
	padding-top: 1.5rem;
}

.tcc-footer-legal > * {
	margin-block-start: 0;
}

.tcc-footer-policy {
	flex: 0 0 auto;
	margin-left: auto;
}

.tcc-footer-policy ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcc-footer-policy a {
	color: var(--wp--preset--color--footer-meta);
	font-size: 0.69rem;
	text-decoration: none;
}

.tcc-footer-policy a:hover {
	color: var(--wp--preset--color--paper);
}

.tcc-footer-copyright {
	color: var(--wp--preset--color--footer-copyright);
	flex: 1 1 0;
	font-size: 0.6325rem;
	margin: 0;
	min-width: 0;
}

@media (max-width: 64rem) {
	.tcc-footer-legal {
		align-items: flex-end;
		flex-direction: column;
	}

	.tcc-footer-copyright,
	.tcc-footer-policy {
		width: 100%;
	}

	.tcc-footer-copyright {
		text-align: right;
	}

	.tcc-footer-policy ul {
		justify-content: flex-end;
	}

	.tcc-footer-policy {
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	.tcc-site-footer {
		min-height: 0;
		padding: 3rem 1.5rem 2rem;
	}

	.tcc-footer-cols {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem 1.5rem;
	}

	.tcc-footer-legal {
		margin-top: 2.5rem;
	}
}

@media (max-width: 400px) {
	.tcc-footer-cols {
		grid-template-columns: 1fr;
	}
}
