/* Legal Pages Specific Styles */
.legal-content {
    padding: 120px 0 80px;
    background: var(--clean-white);
    min-height: 100vh;
}

.legal-content h1 {
    color: var(--educator-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    color: var(--educator-blue);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 600;
}

.legal-content h3 {
    color: var(--lesson-teal);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.legal-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.legal-content a {
    color: var(--lesson-teal);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: var(--focus-orange);
    text-decoration: underline;
}

/* Highlighted sections */
.legal-content strong {
    color: var(--educator-blue);
    font-weight: 600;
}

/* Open source section */
.open-source {
    background: var(--background);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.open-source h2 {
    margin-top: 0;
}

/* Table of contents style (if needed) */
.toc {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.toc h3 {
    margin-top: 0;
    color: var(--educator-blue);
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    padding: 0.25rem 0;
}

.toc a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--lesson-teal);
}

/* Responsive design for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 0 60px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.15rem;
    }

    .legal-content ul {
        margin-left: 1.5rem;
    }
}