/* ==================================================
   KASITU WEBS — HOMEPAGE LEGAL NAVIGATION
   Premium footer styling.
   Position: Services → Legal & Policies → Contact
================================================== */

.legal-footer-links {
    flex: 1 1 0;
    min-width: 220px;
    margin: 0;
    padding: 4px 22px;
    text-align: center;
    border: 0;
}

.legal-footer-title {
    display: block;
    margin: 0 0 12px;
    color: #06b6d4;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.legal-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 10px;
}

.legal-footer-nav a {
    position: relative;
    display: inline-block;
    padding: 3px 0;
    color: rgba(255,255,255,.68);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease, transform .25s ease;
}

.legal-footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: #06b6d4;
    transition: right .25s ease;
}

.legal-footer-nav a:hover,
.legal-footer-nav a:focus-visible {
    color: #06b6d4;
    transform: translateY(-1px);
    outline: none;
}

.legal-footer-nav a:hover::after,
.legal-footer-nav a:focus-visible::after {
    right: 0;
}

.legal-footer-separator {
    display: inline-block;
    color: rgba(255,255,255,.28);
    font-size: .82rem;
    line-height: 1;
    user-select: none;
}

html:not([data-theme="light"]) .legal-footer-nav a {
    color: rgba(255,255,255,.68);
}

html:not([data-theme="light"]) .legal-footer-separator {
    color: rgba(255,255,255,.28);
}

html[data-theme="light"] .legal-footer-title {
    color: #0891b2;
}

html[data-theme="light"] .legal-footer-nav a {
    color: rgba(15,23,42,.62);
}

html[data-theme="light"] .legal-footer-nav a:hover,
html[data-theme="light"] .legal-footer-nav a:focus-visible {
    color: #0891b2;
}

html[data-theme="light"] .legal-footer-separator {
    color: rgba(15,23,42,.28);
}

@media (max-width: 900px) {
    .legal-footer-links {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        padding: 18px 0 4px;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .legal-footer-nav {
        gap: 5px 9px;
    }
}

@media (max-width: 600px) {
    .legal-footer-links {
        padding: 16px 0 3px;
    }

    .legal-footer-title {
        margin-bottom: 10px;
        font-size: .72rem;
    }

    .legal-footer-nav {
        gap: 4px 8px;
    }

    .legal-footer-nav a,
    .legal-footer-separator {
        font-size: .76rem;
    }
}

@media (max-width: 380px) {
    .legal-footer-nav {
        gap: 3px 6px;
    }

    .legal-footer-nav a,
    .legal-footer-separator {
        font-size: .70rem;
    }

    .legal-footer-title {
        font-size: .68rem;
        letter-spacing: .11em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-footer-nav a,
    .legal-footer-nav a::after {
        transition: none;
    }
}
