/* =====================================================================
   Site Footer
   Sits below page content; respects the left-sidebar navbar offset.
   ===================================================================== */

#site-footer {
    position: fixed;
    bottom: 0;
    left: 250px; /* match sidebar navbar width */
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 20, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* "Powered by RESoft™" */
.footer-brand {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.footer-brand strong {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

/* Copyright line */
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    flex: 1 1 auto;
    white-space: nowrap;
}

.footer-copy strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Legal nav links */
.footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    user-select: none;
}

/* Push body content above the fixed footer */
body {
    padding-bottom: 56px !important;
}

/* ── Tablet ─────────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    #site-footer {
        left: 220px;
    }
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #site-footer {
        left: 0;
        padding: 10px 16px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .footer-brand,
    .footer-copy {
        white-space: normal;
    }
}
