﻿/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.legal-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.legal-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    padding: 10px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .nav-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        transform: translateX(5px);
    }

    .nav-item.active {
        background: rgba(138, 75, 175, 0.2);
        color: white;
        border-left: 4px solid #8a4baf;
    }

    .nav-item i {
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

    .language-selector i {
        color: rgba(255,255,255,0.7);
    }

    .language-selector select {
        background: transparent;
        border: none;
        color: white;
        flex: 1;
        cursor: pointer;
        outline: none;
        font-size: 0.9rem;
    }

        .language-selector select option {
            background: #2c3e50;
            color: white;
        }

/* Main Content */
.legal-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 100vh;
}

/* Common Section Styles */
.section {
    margin-bottom: 35px;
}

    .section h2 {
        color: #333;
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid #eaeaea;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .section h3 {
        color: #555;
        font-size: 1.1rem;
        margin: 20px 0 10px 0;
    }

    .section p {
        line-height: 1.7;
        margin-bottom: 15px;
        color: #444;
    }

    .section ul, .section ol {
        margin-left: 25px;
        margin-bottom: 15px;
    }

    .section li {
        margin-bottom: 10px;
        line-height: 1.6;
        color: #444;
    }

.highlight-box {
    background: #f9f9f9;
    border-left: 4px solid #8a4baf;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

    .highlight-box strong {
        color: #8a4baf;
    }

.version-info {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 15px;
}

    .version-info div {
        display: flex;
        flex-direction: column;
    }

    .version-info strong {
        color: #666;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

/* Buttons */
.btn-primary {
    background: #8a4baf;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

    .btn-primary:hover {
        background: #7a3b9f;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(138, 75, 175, 0.2);
    }

.btn-outline {
    background: white;
    color: #666;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .btn-outline:hover {
        border-color: #8a4baf;
        color: #8a4baf;
    }

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

    .contact-info p {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .contact-info i {
        color: #8a4baf;
        width: 20px;
    }

/* Document Footer */
.document-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
    color: #666;
}

    .document-footer a {
        color: #8a4baf;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

        .document-footer a:hover {
            text-decoration: underline;
        }

.timestamp {
    margin-top: 10px;
    font-style: italic;
    color: #888;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-wrapper {
        flex-direction: column;
    }

    .legal-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .legal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }

    .legal-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .version-info {
        flex-direction: column;
        gap: 10px;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .legal-nav {
        flex-direction: column;
    }

    .nav-item {
        min-width: 100%;
        justify-content: flex-start;
    }
}

@media print {
    .legal-sidebar {
        display: none;
    }

    .legal-content {
        padding: 0;
        max-width: none;
    }

    .btn-primary, .btn-outline {
        display: none;
    }

    .legal-wrapper {
        flex-direction: column;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid #8a4baf;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-item.active {
        border-left: 4px solid white;
    }

    .highlight-box {
        border-left: 4px solid black;
    }
}
