/* Legal Pages Styles */

.legal-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.legal-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.update-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.legal-content {
    padding: 4rem 0;
    background: var(--light-bg);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.legal-text {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.legal-section {
    margin-bottom: 3rem;
}

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

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.8rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.acknowledgment {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.acknowledgment p {
    color: var(--text-primary);
    margin: 0;
}

.highlight-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid var(--secondary-color);
    margin-bottom: 2rem;
}

.highlight-box i {
    font-size: 3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.highlight-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.highlight-box p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* Sidebar */
.legal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-nav,
.related-links,
.help-box,
.guarantee-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.sidebar-nav h3,
.related-links h3,
.help-box h4,
.guarantee-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.sidebar-nav ul,
.related-links ul {
    list-style: none;
}

.sidebar-nav li,
.related-links li {
    margin-bottom: 0.8rem;
}

.sidebar-nav a,
.related-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.sidebar-nav a:hover,
.related-links a:hover {
    color: var(--primary-color);
}

.help-box,
.guarantee-box {
    text-align: center;
}

.help-box i,
.guarantee-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.help-box p,
.guarantee-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-nav,
    .related-links,
    .help-box,
    .guarantee-box {
        flex: 1 1 calc(50% - 1rem);
        position: static;
    }
}

@media (max-width: 768px) {
    .legal-header {
        padding: 120px 0 40px;
    }
    
    .legal-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-text {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-sidebar {
        flex-direction: column;
    }
    
    .sidebar-nav,
    .related-links,
    .help-box,
    .guarantee-box {
        flex: 1 1 100%;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section ul,
    .legal-section ol {
        margin-left: 1rem;
    }
}
