/* =============================================
   Legal Pages Styles - Pixbot
   ============================================= */

body.legal-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.legal-header {
    background: #0d6efd;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-header a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.legal-header a:hover {
    opacity: 0.9;
}

/* Navigation breadcrumb */
.legal-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.legal-nav .legal-container {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.legal-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

/* Main container */
.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-content {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    margin: 32px auto;
    max-width: 860px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Typography */
.legal-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-date {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 32px;
    display: block;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 15px;
    color: #334155;
    margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    color: #334155;
    margin-bottom: 6px;
}

.legal-content a {
    color: #0d6efd;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: #0f172a;
}

/* Info boxes */
.legal-info-box {
    background: #eff6ff;
    border-left: 4px solid #0d6efd;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.legal-info-box p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
}

/* Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

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

.legal-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.legal-table td {
    color: #334155;
}

/* Footer */
.legal-footer {
    text-align: center;
    padding: 24px 0;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 13px;
}

.legal-footer a {
    color: #64748b;
    text-decoration: none;
}

.legal-footer a:hover {
    color: #0d6efd;
}

/* Back to top */
.legal-back-top {
    display: inline-block;
    margin-top: 32px;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.legal-back-top:hover {
    background: #e2e8f0;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 24px 20px;
        margin: 16px auto;
        border-radius: 0;
    }

    .legal-content h1 {
        font-size: 22px;
    }

    .legal-content h2 {
        font-size: 18px;
    }

    .legal-nav .legal-container {
        gap: 16px;
    }
}

/* Dark theme support */
[data-theme="dark"] body.legal-page {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .legal-header {
    background: #1e3a5f;
}

[data-theme="dark"] .legal-nav {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .legal-nav a {
    color: #94a3b8;
}

[data-theme="dark"] .legal-nav a:hover,
[data-theme="dark"] .legal-nav a.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

[data-theme="dark"] .legal-content {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-content h1,
[data-theme="dark"] .legal-content h2,
[data-theme="dark"] .legal-content strong {
    color: #f1f5f9;
}

[data-theme="dark"] .legal-content h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li,
[data-theme="dark"] .legal-table td {
    color: #cbd5e1;
}

[data-theme="dark"] .legal-content h2 {
    border-bottom-color: #334155;
}

[data-theme="dark"] .legal-info-box {
    background: #1e3a5f;
    border-left-color: #3b82f6;
}

[data-theme="dark"] .legal-info-box p {
    color: #93c5fd;
}

[data-theme="dark"] .legal-table th {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .legal-table td {
    border-bottom-color: #334155;
}

[data-theme="dark"] .legal-footer {
    color: #64748b;
}

[data-theme="dark"] .legal-back-top {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .legal-back-top:hover {
    background: #475569;
}
