/* Legal Pages Styles */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding-left: 10px;
    border-left: 4px solid var(--secondary-color);
}

.legal-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

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

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

.legal-content li {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.back-to-home {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-link:hover {
    transform: translateX(-5px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.contact-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

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

.toc li {
    margin-bottom: 0.5rem;
}

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

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

/* Language Notice */
.language-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #856404;
}

.language-notice strong {
    color: #856404;
}

/* Section styling */
section {
    margin-bottom: 2rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        margin-top: 80px;
    }

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

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

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

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

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
    }

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

    .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .legal-content p {
        font-size: 0.95rem;
        text-align: left;
    }
}