/* ============================================
   LEGAL PAGES STYLES (Privacy Policy & Terms of Sale)
   ============================================ */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
}

.legal-hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Content Section */
.legal-content {
    padding: 4rem 0;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents */
.legal-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.toc-list a:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

/* Main Article */
.legal-article {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-section ul li {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.legal-section ul li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Info Box */
.contact-info {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Update Notice */
.legal-update {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 153, 204, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.legal-update h2 {
    border-bottom: none;
    padding-bottom: 0;
}

/* Call to Action Section */
.legal-cta {
    background: var(--bg-light);
    padding: 4rem 0;
}

.legal-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-cta .cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-cta .cta-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.legal-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-toc {
        position: static;
        order: -1;
    }

    .legal-hero-title {
        font-size: 2.5rem;
    }

    .legal-article {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 6rem 0 3rem;
    }

    .legal-hero-title {
        font-size: 2rem;
    }

    .legal-hero-subtitle {
        font-size: 1rem;
    }

    .legal-article {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.6rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 1rem;
    }

    .legal-cta .cta-title {
        font-size: 2rem;
    }

    .legal-cta .cta-description {
        font-size: 1.1rem;
    }

    .legal-cta .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-cta .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 1.75rem;
    }

    .legal-toc {
        padding: 1.5rem;
    }

    .legal-article {
        padding: 1.25rem;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 1rem;
    }
}

