/* Legal Pages Styles */
.legal-content {
    padding: 40px 0 80px;
    background: #f8fafc;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.legal-nav {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
}

.legal-nav h3 {
    color: #1a365d;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
}

.legal-nav li {
    margin-bottom: 10px;
}

.legal-nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
}

.legal-nav a:hover {
    background: #e6f3ff;
    color: #3182ce;
}

.legal-text {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

.legal-text h2 {
    color: #1a365d;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6f3ff;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    color: #1a365d;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
}

.legal-text p {
    margin-bottom: 15px;
    color: #333;
    text-align: justify;
}

.legal-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-text li {
    margin-bottom: 8px;
    color: #333;
}

.legal-text strong {
    color: #1a365d;
}

.contact-info {
    background: #e6f3ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #3182ce;
}

.contact-info p {
    margin-bottom: 5px;
    color: #1a365d;
}

.legal-footer {
    background: #f8fafc;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
    border-top: 2px solid #e6f3ff;
}

.legal-footer p {
    margin-bottom: 5px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legal-nav {
        position: static;
        order: 2;
    }
    
    .legal-text {
        padding: 25px;
        order: 1;
    }
    
    .legal-text h2 {
        font-size: 1.5rem;
    }
    
    .legal-text h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .legal-text {
        padding: 20px;
    }
    
    .legal-text h2 {
        font-size: 1.3rem;
    }
    
    .legal-nav {
        padding: 20px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .legal-footer {
        padding: 20px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Active section highlighting */
.legal-nav a.active {
    background: #3182ce;
    color: white;
}

/* Print styles */
@media print {
    .legal-nav {
        display: none;
    }
    
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-text {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .legal-text h2 {
        page-break-after: avoid;
    }
    
    .legal-text p {
        text-align: left;
    }
}

/* Accessibility improvements */
.legal-text section {
    scroll-margin-top: 100px;
}

.legal-text a {
    color: #3182ce;
    text-decoration: underline;
}

.legal-text a:hover {
    color: #1a365d;
}

/* Table styles (if needed for legal documents) */
.legal-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.legal-text th,
.legal-text td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.legal-text th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a365d;
}

/* Highlighted text boxes */
.legal-text .highlight-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.legal-text .highlight-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.legal-text .highlight-box p {
    color: #856404;
    margin-bottom: 0;
}
