.global-footer {
    width: 100%;
    max-width: 1800px;
    margin: 64px auto 32px;
    padding: 24px var(--spacing-xl);
    background: transparent;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: padding-left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dynamically offset footer ONLY for main page layout with sidebar */
/* .layout~.global-footer {
    padding-left: calc(var(--sidebar-width, 240px) + 16px + 12px);
} */

/* When sidebar is hidden (Mini Sidebar), adjust offset */
.layout.sidebar-hidden+.global-footer {
    padding-left: calc(60px + 48px + var(--spacing-xl));
}

.global-footer p {
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Ensure body takes full height so footer can be pushed down if using flex column */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Specific adjustments for specific layouts if needed */
/* For index.html which has a sidebar layout, we might need to adjust */
@media (min-width: 768px) {
    body.layout-sidebar .global-footer {
        padding-left: 280px;
        /* Offset for sidebar */
    }
}

/* responsive adjustments */
@media (max-width: 768px) {
    .global-footer {
        margin-top: 24px;
        padding: 16px var(--spacing-md);
        font-size: 12px;
        border-radius: 0;
        /* Full width on mobile */
    }
}