/* Legal Pages Specific Styling */

/* Legal Header */
.legal-header {
    margin-top: 80px;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    color: white;
    text-align: center;
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.legal-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Language Links (Jump to sections) */
.language-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.lang-link {
    padding: 0.75rem 2rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.lang-link:hover {
    background: white;
    color: var(--blue-dark);
    transform: translateY(-2px);
}

/* Language Header in Content */
.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--blue-dark);
    flex-wrap: wrap;
    gap: 1rem;
}

.language-header h2 {
    font-size: 2rem;
    color: var(--blue-dark);
    margin: 0;
}

.switch-lang {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--blue-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.switch-lang:hover {
    background: var(--blue-dark);
    color: white;
    transform: translateX(3px);
}

/* Legal Content */
.legal-content {
    padding: 60px 0;
    background: var(--gray-light);
    scroll-margin-top: 80px; /* Account for fixed navbar */
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    font-style: italic;
}

.intro {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--blue-dark);
}

.intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section h3 {
    font-size: 1.75rem;
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.section h4 {
    font-size: 1.35rem;
    color: var(--gray-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section h5 {
    font-size: 1.15rem;
    color: var(--gray-dark);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.section ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section a {
    color: var(--blue-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--blue-light);
    transition: all 0.3s ease;
}

.section a:hover {
    color: var(--blue-light);
    border-bottom-color: var(--blue-dark);
}

/* Section Divider */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--orange-dark) 50%, var(--blue-dark) 100%);
    margin: 4rem 0 2rem;
    border-radius: 2px;
}

/* Version Boxes */
.version-box {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--blue-dark);
}

.version-box h5 {
    margin-top: 0;
    color: var(--blue-dark);
}

.version-box ul {
    margin-left: 1.5rem;
}

/* Important Notice Box */
.important-notice {
    background: linear-gradient(135deg, rgba(30, 123, 184, 0.1) 0%, rgba(61, 187, 235, 0.1) 100%);
    border: 2px solid var(--blue-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.important-notice strong {
    color: var(--blue-dark);
    font-size: 1.1rem;
}

/* Warning Notice Box */
.warning-notice {
    background: linear-gradient(135deg, rgba(255, 154, 86, 0.1) 0%, rgba(255, 200, 87, 0.1) 100%);
    border: 2px solid var(--orange-dark);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-notice strong {
    color: var(--orange-dark);
    font-size: 1.1rem;
}

/* Footer Styling */
.footer {
    background: var(--gray-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--blue-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--blue-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 40px 0 30px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-header .subtitle {
        font-size: 1rem;
    }

    .language-links {
        flex-direction: column;
        align-items: center;
    }

    .lang-link {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }

    .legal-document {
        padding: 30px 20px;
    }

    .language-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .language-header h2 {
        font-size: 1.5rem;
    }

    .switch-lang {
        width: 100%;
        text-align: center;
    }

    .section h3 {
        font-size: 1.5rem;
    }

    .section h4 {
        font-size: 1.2rem;
    }

    .section ul {
        margin-left: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-document {
        padding: 20px 15px;
    }

    .section h3 {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .language-links,
    .switch-lang {
        display: none;
    }

    .legal-header {
        background: none;
        color: black;
        margin-top: 0;
        page-break-after: avoid;
    }

    .legal-document {
        box-shadow: none;
        padding: 0;
    }

    .section {
        page-break-inside: avoid;
    }

    .language-header {
        page-break-after: avoid;
    }

    /* Show both language versions when printing */
    .legal-content {
        page-break-before: auto;
    }
}
