/*
 * Site footer
 *
 * The footer sits on a dark surface (Style 4), so links inherit the
 * on-dark link token and lift to the surface's link hover color.
 *
 * @package Kindling
 */

footer {
	a:not(.wp-element-button) {
		text-decoration: none;

		&:hover {
			color: var(--wp--custom--color--text--link-hover);
			text-decoration: none;
		}
	}

	.wp-block-navigation-item__content:hover {
		text-decoration: none;
	}

	.wp-block-button a:hover {
		color: var(--wp--custom--color--button--fill--hover--text);
	}
}

/* Footer legal navigation stacks and drops its separators on small phones. */
@media (max-width: 524px) {
	footer nav[aria-label='Footer Legal'] {
		display: block;
		margin-top: var(--wp--custom--spacing--8);
		line-height: var(--wp--custom--line-height--normal);

		.wp-block-navigation__container {
			display: block;
		}

		.wp-block-navigation__container.has-inline-pipe-separators
			> li:not(:last-child)::after {
			display: none;
		}
	}
}
