/**
 * LEGAL HUB STYLES
 * Specifically for the /terms/ pages
 */

.legal-container {
    max-width: 1800px;
    margin: 70px 0;
    padding: 0 5%;
    justify-self: center;
}

.legal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 50px;
}

.legal-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-menu a {
    display: block;
    padding: 5px 0;
    color: #7a7a7a;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.legal-menu a:hover{
    color:#000;
    font-weight:700;
    text-decoration: underline;
}

.legal-menu a.is-active {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}

/* Mobile: Horizontal Menu Layout */
@media (max-width: 991px) {

 .legal-container {
    margin: 0;
    padding: 0;
}

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Reduced gap for mobile */
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .legal-menu ul {
        border-bottom: 1px solid #f0f0f0;
        padding: 5px 0;
        background-color: #efefed;
        justify-items: center;
    }

    .legal-menu li {
        margin: 0;
    }

    .legal-menu a {
        padding: 5px 0;
        border-bottom: none;
        white-space: nowrap;
        color:#000;
    }
    
    .legal-menu a.is-active {
        color: #000;
        font-weight: 700;
        text-decoration: underline;
    }
}