/* Legal Pages Styling (Privacy Policy, Terms of Service, etc.) */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: white;
    border-radius: 100% 100% 0 0;
}

.legal-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Content Layout */
.legal-content {
    padding: 60px 0;
    background-color: #f9fafc;
}

.legal-content .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.toc-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.toc-container h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background-color: rgba(43, 78, 255, 0.05);
    color: var(--primary-color);
}

.toc-list a.active {
    background-color: rgba(43, 78, 255, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

/* Main Content */
.legal-main {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.legal-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

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

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 20px;
}

.contact-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.contact-info li strong {
    min-width: 80px;
    display: inline-block;
    color: #333;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Responsive Styles */
@media (max-width: 900px) {
    .legal-content .container {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        position: relative;
        top: 0;
        height: auto;
        margin-bottom: 30px;
    }
    
    .legal-main {
        padding: 30px 25px;
    }
    
    .legal-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .legal-hero {
        padding: 60px 0 40px;
    }
    
    .legal-hero h1 {
        font-size: 1.8rem;
    }
    
    .legal-content {
        padding: 40px 0;
    }
    
    .legal-main {
        padding: 25px 20px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}