.legal-content-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.legal-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.legal-sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.legal-sidebar nav ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.legal-sidebar nav ul li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.legal-sidebar nav ul li a.active {
    background-color: var(--light-gray);
    color: #FFA500;
    border-left-color: #FFA500;
}

.legal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.legal-content h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.legal-content h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #FFA500;
    border-radius: 2px;
}

.legal-content h2 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}
.legal-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: #FFA500;
    border-radius: 1px;
}

.legal-content p {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #555;
}
.legal-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.legal-content table th,
.legal-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 0.95em;
}
.legal-content table th {
    background-color: #f0f0f0;
    font-weight: 600;
    color: var(--text-color);
}
.legal-content table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.legal-content table tbody tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 992px) {
    .legal-content-section {
        padding: 40px 0;
    }
    .legal-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .legal-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    .legal-sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .legal-sidebar nav ul li {
        flex-grow: 1;
    }
    .legal-sidebar nav ul li a {
        text-align: center;
        margin-bottom: 0;
    }
    .legal-content {
        padding: 30px;
    }
    .legal-content h1 {
        font-size: 2em;
    }
    .legal-content h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .legal-content-section {
        padding: 30px 0;
    }
    .legal-content {
        padding: 20px;
    }
    .legal-content h1 {
        font-size: 1.8em;
    }
    .legal-content h1::after {
        width: 60px;
        height: 3px;
    }
    .legal-content h2 {
        font-size: 1.4em;
    }
    .legal-content h2::after {
        width: 40px;
        height: 2px;
    }
    .legal-content table th,
    .legal-content table td {
        padding: 8px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .legal-content h1 {
        font-size: 1.6em;
        text-align: center;
    }
    .legal-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .legal-content h2 {
        font-size: 1.2em;
        text-align: center;
    }
    .legal-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .legal-content p,
    .legal-content ul li {
        font-size: 0.9em;
    }
    .legal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}