/* Legal Pages Styles */

.legal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.legal-date {
    font-size: 1.125rem;
    opacity: 0.9;
    animation: fadeIn 1s ease 0.3s both;
}

.legal-content {
    padding: 4rem 0;
    background: var(--bg-white);
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.legal-wrapper p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.legal-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.legal-wrapper h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.legal-wrapper strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-wrapper ul,
.legal-wrapper ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.legal-wrapper li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.legal-wrapper ul li {
    list-style-type: disc;
}

.legal-wrapper ol {
    counter-reset: item;
}

.legal-wrapper ol > li {
    list-style: none;
    position: relative;
    padding-left: 2rem;
}

.legal-wrapper ol > li::before {
    content: counter(item) ". ";
    counter-increment: item;
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.legal-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-wrapper a:hover {
    border-bottom-color: var(--primary-color);
}

/* Table of Contents (if needed) */
.toc {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.toc h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 100px 0 40px;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-wrapper {
        padding: 2rem 1.5rem;
    }

    .legal-wrapper h2 {
        font-size: 1.25rem;
    }

    .legal-wrapper h4 {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .legal-title {
        font-size: 1.75rem;
    }

    .legal-wrapper {
        padding: 1.5rem 1rem;
    }
}
