/* Legal Pages Styles */

.legal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
}

.legal-header {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.legal-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.legal-logo .tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px;
    flex: 1;
    background: white;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease-out;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--brand-primary);
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

.legal-section {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.legal-section h2 {
    font-size: 1.75rem;
    color: var(--brand-secondary);
    margin-bottom: 16px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--brand-light);
    border-radius: 2px;
}

.legal-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.legal-section p strong {
    color: var(--brand-primary);
    font-weight: 600;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.legal-section ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.2rem;
}

.legal-section ul li strong {
    color: var(--brand-secondary);
    font-weight: 600;
}

.contact-info {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--brand-light);
    margin: 20px 0;
}

.contact-info strong {
    display: block;
    color: var(--brand-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.legal-footer {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #e8f4fd, #d0e8f7);
    border-radius: 10px;
    border-left: 4px solid var(--brand-primary);
}

.legal-footer p {
    color: var(--brand-primary);
    font-size: 1.05rem;
    margin: 0;
    text-align: center;
}

.legal-page-footer {
    background: var(--brand-dark);
    color: white;
    padding: 30px 50px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .legal-logo h1 {
        font-size: 1.5rem;
    }

    .legal-content {
        padding: 30px 20px;
        margin: 20px 10px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section p {
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .legal-page-footer {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .legal-header,
    .back-link,
    .legal-page-footer {
        display: none;
    }

    .legal-content {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }

    .legal-section {
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlight Effect for Sections */
.legal-section:target {
    background: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    margin: -10px 0 30px 0;
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    from {
        background: #ffeb3b;
    }
    to {
        background: transparent;
    }
}

