/* Site footer and legal navigation. */

/* Footer shell */
.footer {
    background: radial-gradient(circle at 15% 0%, rgba(250, 204, 20, 0.13), transparent 30%), radial-gradient(circle at 85% 15%, rgba(255, 102, 0, 0.10), transparent 28%), var(--shell-bg-gradient-x);
    font-size: var(--font-m);
    color: var(--shell-text);
    line-height: 1;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    max-width: var(--page-container);
    margin: 0 auto;
    padding: var(--space-xl);
    column-gap: var(--space-2xl);
    row-gap: var(--space-l);
}

.footer__divider {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}

/* Brand */
.footer__brand-name {
    color: var(--white);
    font-size: var(--font-xl);
    font-weight: 800;
}

.footer__brand-tagline {
    font-weight: 600;
}

/* Legal navigation */
.footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__legal-divider {
    width: 100%;
    height: 1px;
    margin-block-end: var(--space-s);
    background: var(--white);
}

:is(.footer__brand-name, .footer__legal-title) {
    margin-block-end: var(--space-s);
}

.footer__legal-title {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer__legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s) var(--space-s);
}

.footer__legal-link {
    position: relative;
    transition: color var(--transition-fast);
}

.footer__legal-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--shell-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.footer__legal-link.is-active {
    color: var(--shell-accent);
}

.footer__legal-link.is-active::after {
    transform: scaleX(1);
}

/* Interactive states */
@media (any-hover: hover) and (any-pointer: fine) {
    .footer__legal-link:hover {
        color: var(--shell-accent);
    }

    .footer__legal-link:hover::after {
        transform: scaleX(1);
    }
}

/* Responsive layout */
@media (max-width: 739px) {
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__legal {
        width: fit-content;
        justify-self: center;
        align-items: center;
    }

    .footer__legal-nav {
        justify-content: center;
    }
}
