/* =========================================================================
   MODULAR SITE FOOTER STYLESHEET
   Location: /static/style/footer.css
   Used for: Global site footer, logo, links, legal popup & hardware disclaimer
   ========================================================================= */

footer.site {
    background: #020812;
    border-top: 1px solid var(--hair);
    padding: 44px 0 34px;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hair);
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-brand .brand-link img.logo-icon {
    height: 32px;
    width: auto;
}

.footer-brand .brand-link img.logo-wordmark {
    height: 52px;
    width: auto;
}

.footer-brand .brand-link img.logo-mobile {
    display: none;
    height: 32px;
    width: auto;
}

.footer-brand .tagline {
    font-size: 0.88rem;
    color: var(--text-faint);
    margin: 0;
}

/* Footer Nav Links - Clean text links, consistent across desktop & mobile */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-nav-link svg {
    flex-shrink: 0;
    color: var(--cyan);
}

.footer-nav a:hover,
.footer-nav-link:hover {
    color: #ffffff;
}

/* Subpage Footer Bar */
.footer-sub-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hair);
    flex-wrap: wrap;
}

.footer-sub-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-sub-links a,
.footer-sub-links button {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-sub-links a:hover,
.footer-sub-links button:hover {
    color: #ffffff;
}

/* Footer Hardware Disclaimer (Ultra-compact & minimal) */
.footer-disclaimer {
    margin: 12px 0 16px;
    padding: 6px 12px;
    background: rgba(10, 25, 48, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.disclaimer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(13, 140, 241, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 0.62rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--cyan);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.disclaimer-badge svg {
    color: var(--cyan);
    flex-shrink: 0;
    width: 10px;
    height: 10px;
}

.disclaimer-text {
    font-size: 0.68rem;
    color: var(--text-faint);
    line-height: 1.35;
    margin: 0;
    flex: 1;
    min-width: 0;
    opacity: 0.85;
}

.disclaimer-text strong {
    color: var(--text-dim);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    font-size: 0.82rem;
    color: var(--text-faint);
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

/* Responsive Footer */
@media (max-width: 680px) {
    footer.site {
        padding: 36px 0 24px;
    }

    .footer-brand .brand-link img.logo-wordmark {
        display: none;
    }

    .footer-brand .brand-link img.logo-mobile {
        display: block;
        max-width: 140px;
        height: 28px;
        object-fit: contain;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-nav {
        gap: 14px 18px;
    }

    .footer-sub-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    footer.site {
        padding: 28px 0 20px;
    }

    .footer-nav {
        gap: 10px 14px;
        font-size: 0.85rem;
    }

    .footer-disclaimer {
        padding: 8px 10px;
    }
}
