/* ========== HENDERSON FOOTER - LEGAL COMPLIANCE ========== */

.site-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    padding: 40px 24px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-brand-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-brand-logo span {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.footer-brand p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-section h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #14b8a6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-copyright {
    font-size: 13px;
    color: #94a3b8;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #14b8a6;
}

/* Dark Mode */
html[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #0a1f16 0%, #071510 100%);
    border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer-brand-logo span {
    color: #f1f5f9;
}

html[data-theme="dark"] .footer-brand p {
    color: #94a3b8;
}

html[data-theme="dark"] .footer-section h4 {
    color: #f1f5f9;
}

html[data-theme="dark"] .footer-section a {
    color: #94a3b8;
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer-copyright,
html[data-theme="dark"] .footer-legal-links a {
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* ========== MINI FOOTER - Option 2: Discreet One-Line ========== */

.mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0d3320; /* Poker table green - matches dashboard */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 9998; /* Just below chat */
}

.mini-footer-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 6px;
    opacity: 0.9;
}

/* ========== LIFT CHAT ELEMENTS ABOVE FOOTER ========== */
/* Footer height is ~26px, lift everything by 28px */

body.dashboard-page .chat-input-container {
    bottom: 28px !important;
}

body.dashboard-page .suggestion-chips {
    bottom: 28px !important;
}

/* Rail buttons - was 85px, now 85+28 = 113px */
body.dashboard-page .rail-buttons {
    bottom: 113px !important;
}

/* Documents queue - was 85px, now 85+28 = 113px */
body.dashboard-page .documents-queue-section {
    bottom: 113px !important;
}

.mini-footer span {
    color: rgba(255, 255, 255, 0.7);
}

.mini-footer .mini-footer-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

.mini-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.mini-footer a:hover {
    color: #4ade80; /* Bright green on hover */
    text-decoration: underline;
}

/* Responsive Mini Footer */
@media (max-width: 480px) {
    .mini-footer {
        font-size: 11px;
        padding: 6px 12px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .mini-footer .mini-footer-sep {
        margin: 0 4px;
    }
}
