/* ==================== css/privacy.css ==================== */

.legal-page {
    padding: 10rem 0 4rem;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--black) 0%, var(--gray-dark) 100%);
    position: relative;
}

.legal-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
    top: 100px;
    right: -300px;
    animation: float 25s infinite ease-in-out;
}

.legal-content {
    background: var(--gray-dark);
    padding: 3.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    animation: slideUp 0.6s ease-out;
    position: relative;
}

.legal-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideIn 0.8s ease-out;
}

.subtitle {
    font-size: 1rem;
    color: var(--purple-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.info-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
    border-left: 4px solid var(--purple-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    animation: slideIn 1s ease-out;
}

.info-highlight p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--purple-primary);
    position: relative;
    animation: slideIn 0.8s ease-out;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--purple-light);
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--purple-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.8rem;
}

.legal-content li {
    color: var(--text-light);
    margin-bottom: 0.9rem;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    padding-left: 0.5rem;
}

.legal-content li::marker {
    color: var(--purple-primary);
}

.legal-content strong {
    color: var(--white);
    font-weight: 600;
}

.legal-content a {
    color: var(--purple-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--purple-light);
    border-bottom-color: var(--purple-light);
}

/* Contact Box */
.contact-box {
    background: var(--gray);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.contact-box:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.contact-box p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

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

/* Back Links */
.back-links {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Progress Indicator */
.legal-content::before {
    content: '';
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Table of Contents Styling (if needed) */
.toc {
    background: var(--gray);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin: 2rem 0;
}

.toc h3 {
    margin-top: 0;
    color: var(--purple-primary);
}

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

.toc li {
    padding: 0.5rem 0;
}

.toc a {
    color: var(--text-light);
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-primary);
    transform: translateX(5px);
}

/* Animation for list items on scroll */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 8rem 0 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

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

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

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

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

    .back-links {
        flex-direction: column;
    }

    .back-links .btn {
        width: 100%;
    }

    .contact-box {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-links {
        display: none;
    }

    .legal-page {
        padding: 0;
        background: white;
    }

    .legal-content {
        box-shadow: none;
        border: none;
        background: white;
    }

    .legal-content h1,
    .legal-content h2,
    .legal-content h3,
    .legal-content p,
    .legal-content li {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}