.legal-content {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-content h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.legal-content h1::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

.legal-content h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-content ul li {
    margin-bottom: 5px;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .legal-content {
        padding: 60px 4%;
    }

    .legal-content h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .legal-content h2 {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 40px 3%;
    }

    .legal-content h1 {
        font-size: 1.8em;
    }

    .legal-content h2 {
        font-size: 1.3em;
    }
}