/* Legal Pages Styles */

/* Hero Section для страницы разработчиков */
.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.legal-hero {
    background: linear-gradient(135deg, #00AFCA 0%, #0299B5 100%);
    padding: 60px 0 60px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -1px;
}

.legal-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.legal-content {
    padding: 80px 0;
    background: #fff;
}

.legal-content .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1320px;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
}

.legal-nav-link {
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    line-height: 1.4;
}

.legal-nav-link:hover {
    background: #fff;
    color: #00AFCA;
}

.legal-nav-link.active {
    background: linear-gradient(-45deg, #5FCBEA, #0299B5);
    color: #fff;
}

/* Document Content */
.legal-document {
    background: #fff;
    max-width: 900px;
}

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    scroll-margin-top: 120px;
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
    line-height: 1.3;
}

.legal-section h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 20px;
    color: #1a1a1a;
}

.legal-section p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-section ul {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.legal-section ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

.legal-section ul li::before {
    position: absolute;
    left: 10px;
    color: #00AFCA;
    font-weight: 900;
    font-size: 20px;
}

.legal-footer-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.legal-footer-info p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #666;
}

.legal-footer-info p:last-child {
    margin-bottom: 0;
    margin-top: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.legal-footer-info strong {
    color: #00AFCA;
    font-weight: 700;
}

/* Table of Contents (if needed) */
.legal-toc {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.legal-toc h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
}

.legal-toc ul li {
    padding: 8px 0;
}

.legal-toc ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.legal-toc ul li a:hover {
    color: #00AFCA;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        order: -1;
    }

    .legal-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .legal-nav-link {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 160px 0 60px;
    }

    .legal-hero h1 {
        font-size: 36px;
    }

    .legal-content {
        padding: 60px 0;
    }

    .legal-content .container {
        padding: 0 20px;
    }

    .legal-nav {
        grid-template-columns: 1fr;
    }

    .legal-section h2 {
        font-size: 26px;
    }

    .legal-section h3 {
        font-size: 20px;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 28px;
    }

    .legal-date {
        font-size: 14px;
    }

    .legal-section {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .legal-section h2 {
        font-size: 24px;
    }

    .legal-footer-info {
        padding: 20px;
    }
}