/* ============================================
   Legal Pages Stylesheet
   ============================================ */

.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-page__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.legal-page__date {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1a2332;
}

.legal-page__content {
    max-width: 800px;
}

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

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.legal-section p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section strong {
    color: #cbd5e1;
}

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

.legal-section ul li {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

/* Table styles */
.legal-table {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid #1a2332;
}

.legal-table table {
    width: 100%;
    border-collapse: collapse;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid #1a2332;
}

.legal-table th {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 600;
}

.legal-table td {
    color: #94a3b8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 120px 0 60px;
    }
    .legal-page__title {
        font-size: 1.8rem;
    }
    .legal-section h2 {
        font-size: 1.1rem;
    }
}

/* ============================================
   Light Theme Overrides
   ============================================ */
[data-theme="light"] .legal-page__title {
    color: #1a1a2e;
}

[data-theme="light"] .legal-page__date {
    color: #64748b;
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .legal-section h2 {
    color: #1a1a2e;
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .legal-section p {
    color: #475569;
}

[data-theme="light"] .legal-section strong {
    color: #1e293b;
}

[data-theme="light"] .legal-section ul li {
    color: #475569;
}

[data-theme="light"] .legal-table {
    border-color: #e2e8f0;
}

[data-theme="light"] .legal-table th {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .legal-table td {
    color: #475569;
}

[data-theme="light"] .legal-table th,
[data-theme="light"] .legal-table td {
    border-bottom-color: #e2e8f0;
}
