/* Legal Pages Styles */

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, #4C6FFF 0%, #3358E2 100%);
    color: white;
    padding: 96px 0;
    text-align: center;
}

.legal-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: white;
}

.last-updated {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 500;
}

/* Legal Content */
.legal-content {
    padding: 96px 0;
    background: white;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.table-of-contents {
    background: #F8F9FA;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 48px;
    border-left: 4px solid #4C6FFF;
}

.table-of-contents h3 {
    margin-bottom: 24px;
    color: #4C6FFF;
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc-counter;
}

.table-of-contents ol li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.table-of-contents ol li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: #4C6FFF;
    font-weight: 600;
}

.table-of-contents ol li a {
    color: #1E1E1E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents ol li a:hover {
    color: #4C6FFF;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E1E4E8;
}

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

.legal-section h2 {
    color: #1E1E1E;
    margin-bottom: 24px;
    font-size: 32px;
    scroll-margin-top: 100px;
}

.legal-section h3 {
    color: #1E1E1E;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 24px;
}

.legal-section h4 {
    color: #1E1E1E;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 18px;
}

.legal-section p {
    color: #5A5A5A;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-section ul {
    color: #5A5A5A;
    margin-bottom: 20px;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section strong {
    color: #1E1E1E;
    font-weight: 600;
}

.legal-section a {
    color: #4C6FFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #3358E2;
    text-decoration: underline;
}

/* Contact Info Boxes */
.contact-info {
    background: #F8F9FA;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid #4C6FFF;
}

.contact-info p {
    margin-bottom: 8px;
    color: #1E1E1E;
}

.contact-info strong {
    color: #1E1E1E;
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-table th,
.legal-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #E1E4E8;
}

.legal-table th {
    background: #F8F9FA;
    font-weight: 600;
    color: #1E1E1E;
}

.legal-table td {
    color: #5A5A5A;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* Highlight Boxes */
.highlight-box {
    background: #FEF3C7;
    border: 1px solid #FDE047;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.highlight-box.warning {
    background: #FEF2F2;
    border-color: #EF4444;
}

.highlight-box.success {
    background: #F0FDF4;
    border-color: #22C55E;
}

.highlight-box.info {
    background: #EFF6FF;
    border-color: #4C6FFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 36px;
    }
    
    .legal-section h2 {
        font-size: 28px;
    }
    
    .legal-section h3 {
        font-size: 20px;
    }
    
    .table-of-contents {
        padding: 24px;
    }
    
    .legal-body {
        padding: 0 16px;
    }
    
    .contact-info {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 48px 0;
    }
    
    .legal-header {
        padding: 64px 0;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-section {
        margin-bottom: 48px;
    }
    
    .table-of-contents {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .announcement-bar {
        display: none !important;
    }
    
    .legal-header {
        background: white !important;
        color: black !important;
        padding: 32px 0;
    }
    
    .legal-header h1 {
        color: black !important;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
        margin-bottom: 32px;
    }
    
    .legal-section h2 {
        page-break-after: avoid;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .contact-info,
    .highlight-box {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}