/* legal.css — páginas de termos, privacidade, LGPD */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f0f13;
    --surface: #1a1a24;
    --border: #2a2a38;
    --text: #e8e8f0;
    --muted: #8888aa;
    --accent: #7c6aff;
    --accent-light: #a89aff;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --max: 780px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body.legal-page {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 100%;
}

.legal-logo {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--accent-light);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.legal-back {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.legal-back:hover { color: var(--text); }

/* ── Main content ── */
.legal-content {
    flex: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.legal-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: #c0c0d8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #c0c0d8;
}

.legal-content li { margin-bottom: 0.35rem; }

.legal-content strong { color: var(--text); font-weight: 600; }

.legal-content a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content a:hover { color: #fff; }

/* ── Footer ── */
.legal-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .legal-header { padding: 0.875rem 1rem; }
    .legal-content { padding: 2rem 1rem 3rem; }
}
