/* ===== Footer Styles ===== */
:root {
    --section-spacing: 4rem;
}

/* ----- Shared Footer ----- */
.md-footer .md-footer-meta__inner {
    padding: 1.5rem 1rem;
}

.md-footer .md-footer-copyright {
    width: 100%;
}

/* Disclaimer text */
.lava-footer-disclaimer,
.md-footer-copyright > .footer-brand-text:first-of-type {
    display: block;
    font-size: 0.7rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.0rem;
    padding-bottom: 1.0rem;
    color: var(--md-footer-fg-color);
}

.lava-footer-disclaimer a {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lava-footer-disclaimer a:hover {
    opacity: 1;
}

/* Footer navigation links */
.md-footer .footer-nav,
.md-footer-copyright > .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-bottom: 1.0rem;
    padding-bottom: 1.0rem;
}

.md-footer .footer-nav a,
.md-footer-copyright > .footer-links a {
    font-size: 0.8rem;
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.md-footer .footer-nav a:hover,
.md-footer-copyright > .footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Footer metadata */
.md-footer .footer-meta,
.md-footer-copyright > .footer-brand-text:last-of-type {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.md-footer .footer-meta-item,
.md-footer-copyright > .footer-brand-text:last-of-type span {
    font-size: 0.75rem;
    opacity: 0.6;
}

.md-footer .footer-meta-item strong,
.md-footer-copyright > .footer-brand-text:last-of-type span strong {
    opacity: 1;
    font-weight: 600;
}

/* ----- Desktop styles (768px+) ----- */
@media (min-width: 768px) {
    .md-footer .footer-nav,
    .md-footer-copyright > .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .md-footer .footer-meta,
    .md-footer-copyright > .footer-brand-text:last-of-type {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 2rem;
    }
}

/* ----- Footer Banner (Homepage) ----- */
.footer-banner {
    background-color: var(--md-default-fg-color);
    color: var(--md-default-bg-color);
    /* padding: 2.5rem 1rem; */
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

[data-md-color-scheme="slate"] .footer-banner {
    background-color: var(--md-footer-bg-color);
}

.footer-banner .md-footer-meta__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    height: 50px;
    width: auto;
}

.footer-brand-text {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.8;
}

.footer-brand-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.footer-banner .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-banner .footer-links a {
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-banner .footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Desktop banner layout */
@media (min-width: 768px) {
    .footer-banner .md-footer-meta__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Dark theme adjustments */
[data-md-color-scheme="slate"] .footer-brand-text,
[data-md-color-scheme="slate"] .footer-brand-text strong {
    color: var(--md-default-fg-color--light);
}

[data-md-color-scheme="slate"] .footer-banner .footer-links a {
    color: var(--md-default-fg-color--light);
}