/* QAPI — documentos legais (Termos de Serviço e Política de Privacidade).
   Tema público (body.pub, ver public.css): as cores vêm dos tokens, não de hex fixo. */
/* ── Layout ─────────────────────────────────────────────── */
.legal-hero {
    background: linear-gradient(160deg, rgba(0,135,106,0.07) 0%, transparent 60%);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}
.legal-hero .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.legal-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}
.legal-hero .meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
}
.legal-hero .meta span { color: var(--accent2); }

/* ── LGPD shield banner ──────────────────────────────────── */
.lgpd-banner {
    max-width: 820px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}
.lgpd-banner-inner {
    background: rgba(0,135,106,0.06);
    border: 1px solid rgba(0,135,106,0.25);
    border-radius: 12px;
    padding: 1.2rem 1.6rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}
.lgpd-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.lgpd-text { font-size: 0.88rem; color: var(--brand-800); line-height: 1.7; }
.lgpd-text strong { color: var(--ink); }

/* ── Content wrapper ─────────────────────────────────────── */
.legal-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ── Table of contents ───────────────────────────────────── */
.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.8rem;
    margin-bottom: 3rem;
}
.toc h3 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.9rem;
}
.toc ol {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.5rem;
}
.toc ol li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toc ol li a:hover { color: var(--accent2); }
.toc ol li a::before {
    content: attr(data-n);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent2);
    min-width: 18px;
}

/* ── Sections ────────────────────────────────────────────── */
.legal-section {
    margin-bottom: 2.8rem;
    scroll-margin-top: 80px;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.section-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent2);
    background: rgba(0,135,106,0.1);
    border: 1px solid rgba(0,135,106,0.25);
    border-radius: 4px;
    padding: 2px 7px;
    flex-shrink: 0;
}
.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.legal-section p {
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 0.9rem;
}
.legal-section p:last-child { margin-bottom: 0; }

/* ── Data table ──────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 1rem 0;
    font-size: 0.86rem;
}
.data-table thead tr {
    background: var(--surface2);
}
.data-table th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.75rem 1rem;
    color: var(--ink-2);
    border-bottom: 1px solid rgba(42,42,62,0.5);
    vertical-align: top;
    line-height: 1.55;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0,135,106,0.02); }
.data-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* ── Highlight boxes ─────────────────────────────────────── */
.highlight-box {
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    line-height: 1.7;
}
.highlight-box.green {
    background: rgba(0,135,106,0.06);
    border-left: 3px solid var(--accent2);
    color: var(--brand-800);
}
.highlight-box.purple {
    background: rgba(91,75,196,0.07);
    border-left: 3px solid var(--accent);
    color: var(--violet-700);
}
.highlight-box.red {
    background: rgba(180,35,24,0.06);
    border-left: 3px solid var(--accent3);
    color: var(--danger);
}
.highlight-box strong { color: var(--ink); }

/* ── Lists ───────────────────────────────────────────────── */
.legal-list {
    list-style: none;
    margin: 0.7rem 0 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.legal-list li {
    display: flex;
    gap: 0.7rem;
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.6;
}
.legal-list.checks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent2); flex-shrink: 0; }
.legal-list.blocks li::before { content: '\f00d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent3); flex-shrink: 0; }
.legal-list li::before { content: '▸'; color: var(--accent2); flex-shrink: 0; margin-top: 1px; }

/* ── Footer nav ──────────────────────────────────────────── */
.legal-footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.legal-footer-nav a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.legal-footer-nav a:hover { color: var(--accent2); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .toc ol { grid-template-columns: 1fr; }
    .legal-wrap { padding: 2rem 1rem 4rem; }
    .lgpd-banner-inner { flex-direction: column; gap: 0.6rem; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 0.6rem 0.7rem; }
    .data-table td:first-child { white-space: normal; }
}

@media (max-width: 767.98px) {
  .toc ol li a, .legal-footer-nav a { min-height: 44px; align-items: center; }
}
