/* Legal Pages Styles */

.legal-page {
    min-height: 100vh;
    padding: 120px 0 50px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.legal-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8));
    }
}

.legal-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.legal-section:hover::before {
    left: 100%;
}

.legal-section:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.legal-section h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-section h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.legal-text h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--neon-pink);
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.legal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.legal-text ul {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.legal-text ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.legal-text ul li:last-child {
    border-bottom: none;
}

.legal-text ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-size: 0.8rem;
    top: 0.7rem;
    text-shadow: 0 0 5px var(--neon-green);
}

.legal-text ul li:hover {
    padding-left: 2.5rem;
    color: var(--text-primary);
    background: rgba(0, 255, 255, 0.05);
    border-radius: 5px;
}

.legal-text a {
    color: var(--neon-cyan);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.legal-text a:hover::after {
    width: 100%;
}

.legal-text a:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateY(-1px);
}

.contact-info {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info strong {
    color: var(--neon-cyan);
    min-width: 80px;
}

/* Table of Contents */
.toc {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.toc h3 {
    font-family: var(--font-primary);
    color: var(--neon-pink);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 0, 255, 0.1);
}

.toc ul li:last-child {
    border-bottom: none;
}

.toc ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.toc ul li a:hover {
    color: var(--neon-pink);
    background: rgba(255, 0, 255, 0.1);
    transform: translateX(10px);
}

/* Highlight boxes */
.highlight-box {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid var(--neon-orange);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.highlight-box::before {
    content: '⚠';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-card);
    color: var(--neon-orange);
    font-size: 1.5rem;
    padding: 0 10px;
    text-shadow: 0 0 10px var(--neon-orange);
}

.highlight-box.info::before {
    content: 'ℹ';
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.highlight-box.success::before {
    content: '✓';
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.highlight-box.info {
    background: rgba(0, 128, 255, 0.1);
    border-color: var(--neon-blue);
}

.highlight-box.success {
    background: rgba(0, 255, 128, 0.1);
    border-color: var(--neon-green);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-content {
        padding: 0 1rem;
    }
    
    .toc {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 50px;
    }
    
    .legal-title {
        font-size: 2.5rem;
    }
    
    .legal-section {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-text h3 {
        font-size: 1.2rem;
    }
    
    .legal-text p,
    .legal-text ul li {
        font-size: 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .toc {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 1.5rem 1rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .legal-section h2::before {
        width: 100%;
        height: 2px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    #particles-js {
        display: none !important;
    }
    
    .legal-page {
        padding: 0;
        background: white !important;
        color: black !important;
    }
    
    .legal-section {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .legal-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    .legal-section h2 {
        color: black !important;
    }
    
    .legal-text h3 {
        color: #333 !important;
    }
    
    .legal-text a {
        color: #0066cc !important;
        text-decoration: underline !important;
    }
}