/* IC Footer: Legal (patterns/ic-footer-legal.php).
 * The band is tt5c_footer_legal_markup( 'light' ) (inc/footer-legal.php), laid out by landing-base.css (.tt5c-footer__legal).
 * This file only retunes it: the section supplies the padding, type moves to the ico legal / footer roles, and the
 * --tt5c-legal-* colour knobs are re-pointed at ico colours. Dark variant: has-primary-background-color + tt5c-ic-on-dark. */

.tt5c-ic-footer-legal.tt5c-ic-section { padding-block: var(--wp--preset--spacing--50); }

.tt5c-ic-footer-legal .tt5c-footer__legal {
	--tt5c-legal-muted: var(--ico-color-text-muted);
	--tt5c-legal-link: var(--ico-color-link);
	--tt5c-legal-nav: var(--ico-color-text);
	--tt5c-legal-rule: var(--ico-color-border);
	--tt5c-legal-social: var(--ico-color-text);
	--tt5c-legal-hover: var(--ico-color-link-attention);
	max-width: var(--wp--custom--layout--legal);
	padding: 0;
	font-family: var(--ico-type-legal-default-family);
	font-weight: var(--ico-type-legal-default-weight);
}

/* Legal lines: Legal/Default. */
.tt5c-ic-footer-legal .tt5c-footer__legal :is(.tt5c-footer__a11y, .tt5c-footer__copy, .tt5c-footer__disclaimer, .tt5c-footer__trademark) {
	font-family: var(--ico-type-legal-default-family);
	font-size: var(--ico-type-legal-default-size);
	font-weight: var(--ico-type-legal-default-weight);
	line-height: var(--ico-type-legal-default-lh);
	letter-spacing: var(--ico-type-legal-default-ls);
	text-transform: var(--ico-type-legal-default-case);
	color: var(--tt5c-legal-muted);
}
.tt5c-ic-footer-legal .tt5c-footer__legal .tt5c-footer__copy { color: var(--ico-color-text); }

/* Legal link row: Footer/Link. */
.tt5c-ic-footer-legal .tt5c-footer__legal .tt5c-footer__links a {
	font-family: var(--ico-type-footer-link-family);
	font-size: var(--ico-type-footer-link-size);
	font-weight: var(--ico-type-footer-link-weight);
	line-height: var(--ico-type-footer-link-lh);
	letter-spacing: var(--ico-type-footer-link-ls);
	text-transform: var(--ico-type-footer-link-case);
	color: var(--tt5c-legal-nav);
}
/* Social row: Footer/Heading (uppercase label). */
.tt5c-ic-footer-legal .tt5c-footer__legal .tt5c-footer__social a {
	font-family: var(--ico-type-footer-heading-family);
	font-size: var(--ico-type-footer-heading-size);
	font-weight: var(--ico-type-footer-heading-weight);
	line-height: var(--ico-type-footer-heading-lh);
	letter-spacing: var(--ico-type-footer-heading-ls);
	text-transform: var(--ico-type-footer-heading-case);
	color: var(--tt5c-legal-social);
}
.tt5c-ic-footer-legal .tt5c-footer__legal a:hover { color: var(--tt5c-legal-hover); }

/* ---------- Dark (Ocean 1) ---------- */
.tt5c-ic-footer-legal.tt5c-ic-on-dark .tt5c-footer__legal,
.tt5c-ic-footer-legal.has-primary-background-color .tt5c-footer__legal {
	--tt5c-legal-muted: color-mix(in srgb, var(--ico-color-on-dark) 78%, transparent);
	--tt5c-legal-link: var(--ico-color-on-dark);
	--tt5c-legal-nav: var(--ico-color-on-dark);
	--tt5c-legal-rule: color-mix(in srgb, var(--ico-color-on-dark) 30%, transparent);
	--tt5c-legal-social: var(--ico-color-on-dark);
	--tt5c-legal-hover: var(--ico-color-on-dark); /* Sunlight on Ocean 1 is too low-contrast; hover is the underline below */
}
:is(.tt5c-ic-footer-legal.tt5c-ic-on-dark, .tt5c-ic-footer-legal.has-primary-background-color) .tt5c-footer__legal .tt5c-footer__copy { color: var(--ico-color-on-dark); }
:is(.tt5c-ic-footer-legal.tt5c-ic-on-dark, .tt5c-ic-footer-legal.has-primary-background-color) .tt5c-footer__legal .tt5c-footer__links a:hover { text-decoration: underline; text-underline-offset: 2px; /* derived — not Figma (matches landing-base link offset) */ }

/* The light markup carries the colour logo; on dark it is swapped for the white one behind a transparent img
   (alt text kept), the way landing-300nls.css swaps its logo. */
:is(.tt5c-ic-footer-legal.tt5c-ic-on-dark, .tt5c-ic-footer-legal.has-primary-background-color) .tt5c-footer__logo-img a {
	display: block;
	background: url("../../brand/irvine-company-white.svg") center / contain no-repeat;
}
:is(.tt5c-ic-footer-legal.tt5c-ic-on-dark, .tt5c-ic-footer-legal.has-primary-background-color) .tt5c-footer__logo-img img { opacity: 0; }

/* Spacing on the ico legal leading (16px lines sit tighter than the base's 1.75): a step between the help line
   and ©, and between the link row and the trademark line (the base only adds the latter on phones). */
.tt5c-ic-footer-legal .tt5c-footer__legal .tt5c-footer__copy { margin-top: var(--wp--preset--spacing--10); }
.tt5c-ic-footer-legal .tt5c-footer__legal .tt5c-footer__trademark { margin-top: var(--wp--preset--spacing--20); }
/* Phones: landing-base already holds the trademark line off the wrapped link rows (margin-bottom on the list). */
@media (max-width: 600px) {
	.tt5c-ic-footer-legal .tt5c-footer__legal .tt5c-footer__trademark { margin-top: 0; }
}
