.legal-page-template .legal-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-page-template .legal-sidebar {
    flex: 0 0 250px;
    margin-right: 40px;
}

.legal-page-template .legal-menu-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}

.legal-page-template .legal-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-page-template .legal-navigation li {
    margin-bottom: 10px;
}

.legal-page-template .legal-navigation a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
}

.legal-page-template .legal-navigation .current-menu-item a {
    font-weight: 700;
    color: #000;
}

.legal-page-template .legal-content {
    flex: 1;
}

.legal-page-template .legal-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .legal-page-template .legal-container {
        flex-direction: column;
    }

    .legal-page-template .legal-sidebar {
        flex: 0 1 auto; /* Allow sidebar to shrink */
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }

    .legal-page-template .legal-sidebar .menu-legal-1-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar by default and show on hover if needed, making it thin */
    .legal-page-template .legal-sidebar .menu-legal-1-container::-webkit-scrollbar {
        height: 4px; /* Make scrollbar thinner */
    }

    .legal-page-template .legal-sidebar .menu-legal-1-container::-webkit-scrollbar-track {
        background: transparent; /* Make track invisible */
    }

    .legal-page-template .legal-sidebar .menu-legal-1-container::-webkit-scrollbar-thumb {
        background: #ddd; /* Lighter scrollbar thumb */
        border-radius: 4px;
    }

    .legal-page-template .legal-navigation {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0; /* Padding at the bottom for scrollbar space */
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-page-template .legal-navigation li {
        margin-right: 10px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .legal-page-template .legal-navigation::-webkit-scrollbar {
        height: 4px;
    }

    .legal-page-template .legal-navigation::-webkit-scrollbar-track {
        background: transparent;
    }

    .legal-page-template .legal-navigation::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }

    .legal-page-template .legal-navigation a {
        display: block;
        padding: 8px 15px;
        background-color: #fbfbfb;
        border-radius: 8px;
        text-decoration: none;
        color: #555;
    }

    .legal-page-template .legal-navigation .current-menu-item a {
        font-weight: 700;
        color: #000;
    }

    .legal-page-template .legal-menu-title {
        margin-bottom: 15px;
    }
}