/**
 * Páginas legais (termos, privacidade) — Design System público escuro
 */
html[data-theme="dark"] body.dpx-legal-page,
html[data-theme="dark"] .dpx-legal-page {
    --accent: var(--accent, #2DD4A7);
    --accent-deep: var(--accent-ink, #5EEAD4);
    --bg: var(--bg-page, #0A0E0D);
    --bg-card: var(--bg-card, #10161A);
    --border: var(--border-default, rgba(255, 255, 255, 0.06));
    --text: var(--text-primary, #F2F5F4);
    --text-muted: var(--text-muted, #8A9590);
    --text-body: var(--text-secondary, #A8B4AF);
}

.dpx-legal-page {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.dpx-legal-page ::-webkit-scrollbar { width: 6px; }
.dpx-legal-page ::-webkit-scrollbar-track { background: var(--bg); }
.dpx-legal-page ::-webkit-scrollbar-thumb { background: #1A2320; border-radius: 3px; }
.dpx-legal-page ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.dpx-legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    height: 72px;
    background: rgba(10, 14, 13, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.dpx-legal-nav .logo img { height: 28px; }

.dpx-legal-nav .back-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s;
}

.dpx-legal-nav .back-link:hover { color: var(--accent); }
.dpx-legal-nav .back-link svg { width: 16px; height: 16px; }

.dpx-legal-page .page-wrapper {
    min-height: 100vh;
    padding: 140px 20px 100px;
    position: relative;
}

.dpx-legal-page .page-wrapper::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb, 45, 212, 167), 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dpx-legal-page .legal-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
}

.dpx-legal-page .legal-card::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.dpx-legal-page .legal-header {
    padding: 48px 56px 36px;
    border-bottom: 1px solid var(--border);
}

.dpx-legal-page .legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border: 1px solid rgba(var(--accent-rgb, 45, 212, 167), 0.28);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dpx-legal-page .legal-badge svg { width: 12px; height: 12px; }

.dpx-legal-page .legal-header h1 {
    font-family: var(--font-kpi, 'Sora', var(--font-ui));
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.15;
}

.dpx-legal-page .legal-header h1 span { color: var(--accent); }

.dpx-legal-page .legal-header .subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.dpx-legal-page .legal-body {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.dpx-legal-page .legal-section h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dpx-legal-page .legal-section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(var(--accent-rgb, 45, 212, 167), 0.12);
}

.dpx-legal-page .legal-section p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.85;
}

.dpx-legal-page .legal-section p strong { color: var(--text); }

.dpx-legal-page .legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.dpx-legal-page .legal-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.dpx-legal-page .legal-section ul li svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--accent);
    width: 14px;
    height: 14px;
}

.dpx-legal-page .legal-notice {
    background: rgba(var(--accent-rgb, 45, 212, 167), 0.06);
    border: 1px solid rgba(var(--accent-rgb, 45, 212, 167), 0.16);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-control, 8px);
    padding: 18px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dpx-legal-page .legal-notice strong { color: var(--accent); }

.dpx-legal-page .legal-footer {
    padding: 24px 56px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.dpx-legal-page .legal-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

.dpx-legal-page .legal-footer p span { color: var(--accent); }

@media (max-width: 640px) {
    .dpx-legal-nav { padding: 0 20px; }
    .dpx-legal-page .legal-header,
    .dpx-legal-page .legal-body,
    .dpx-legal-page .legal-footer { padding-left: 28px; padding-right: 28px; }
    .dpx-legal-page .legal-header h1 { font-size: 26px; }
}
