/* ========================================================== compliance.css: estilos so da pagina de compliance guardar em: css/compliance.css ---------------------------------------------------------- principios: sem sombras, sem gradientes, sem icones decorativos, sem animacoes de entrada. hierarquia feita com tipografia, espaco e linhas finas, como um documento bem paginado. ajuste --cp-accent para o token de marca real de variables.css. ========================================================== */

.cp-page {
    --cp-ink: var(--text);
    --cp-text: var(--text2);
    --cp-muted: var(--text2);
    --cp-line: var(--border);
    --cp-accent: var(--primary-soft);
    --cp-radius: 6px;

    background: var(--bg);
    color: var(--cp-text);
    padding: 64px 0 96px;
    font-size: 1rem;
    line-height: 1.65;
}

.cp-page:focus { outline: none; }

.page-hero .cp-updated {
    margin-top: 20px;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* layout: indice + conteudo */
.cp-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.cp-content { max-width: 760px; }

/* indice */
.cp-toc {
    position: sticky;
    top: 110px;
    font-size: 0.875rem;
}
.cp-toc-title {
    margin: 0 0 12px;
    font-weight: 600;
    color: var(--cp-ink);
}
.cp-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--cp-line);
}
.cp-toc a {
    display: block;
    padding: 6px 0 6px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--cp-muted);
    text-decoration: none;
}
.cp-toc a:hover { color: var(--cp-ink); border-left-color: var(--cp-line); }
.cp-toc a:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 2px; }

/* seccoes */
.cp-section {
    padding: 48px 0;
    border-top: 1px solid var(--cp-line);
    scroll-margin-top: 100px;
}
.cp-section:first-child { padding-top: 0; border-top: 0; }

.cp-section h2 {
    margin: 0 0 16px;
    font-size: 1.625rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--cp-ink);
    letter-spacing: -0.01em;
}
.cp-section h3 {
    margin: 0 0 6px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cp-ink);
}
.cp-section p { margin: 0 0 16px; }
.cp-section a:not(.btn) {
    color: var(--cp-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.cp-lead { font-size: 1.125rem; color: var(--cp-ink); }
.cp-note { font-size: 0.9375rem; color: var(--cp-muted); margin-top: 20px; }
.cp-small { font-size: 0.875rem; color: var(--cp-muted); margin: 12px 0 0; }
.cp-muted { color: var(--cp-muted); }

/* ficha rapida */
.cp-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px 0 0;
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius);
}
.cp-facts > div { padding: 16px 20px; border-bottom: 1px solid var(--cp-line); }
.cp-facts > div:nth-child(odd) { border-right: 1px solid var(--cp-line); }
.cp-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.cp-facts dt {
    font-size: 0.8125rem;
    color: var(--cp-muted);
    margin-bottom: 2px;
}
.cp-facts dd { margin: 0; color: var(--cp-ink); font-weight: 500; }

/* tabela de licencas */
.cp-table-wrap { margin-top: 24px; }
.cp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.cp-table th,
.cp-table td {
    text-align: left;
    vertical-align: top;
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid var(--cp-line);
}
.cp-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cp-muted);
    border-bottom-color: var(--cp-ink);
    padding-top: 0;
}
.cp-table tbody th { font-weight: 600; color: var(--cp-ink); width: 30%; }
.cp-num {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
    color: var(--cp-ink);
    white-space: nowrap;
}

/* leis */
.cp-laws { list-style: none; margin: 24px 0 0; padding: 0; }
.cp-laws li { padding: 18px 0; border-bottom: 1px solid var(--cp-line); }
.cp-laws li:first-child { padding-top: 0; }
.cp-laws li:last-child { border-bottom: 0; }
.cp-laws p { margin: 0; }
.cp-law-ref {
    font-size: 0.8125rem;
    color: var(--cp-muted);
    margin-bottom: 4px !important;
}

/* praticas (lista numerada simples) */
.cp-steps {
    list-style: none;
    counter-reset: cp;
    margin: 24px 0 0;
    padding: 0;
}
.cp-steps li {
    counter-increment: cp;
    position: relative;
    padding: 0 0 24px 44px;
}
.cp-steps li::before {
    content: counter(cp);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--cp-line);
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    color: var(--cp-ink);
}
.cp-steps p { margin: 0; }

/* utilitario (caso style.css nao o tenha) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ========================================================== responsivo ========================================================== */
@media (max-width: 960px) {
    .cp-layout { grid-template-columns: 1fr; gap: 32px; }
    .cp-toc { position: static; }
    .cp-toc ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
    .cp-toc a {
        padding: 6px 12px;
        margin: 0;
        border: 1px solid var(--cp-line);
        border-radius: 999px;
        min-height: 36px;
        display: flex;
        align-items: center;
    }
    .cp-toc a:hover { border-color: var(--cp-muted); }
}

@media (max-width: 640px) {
    .cp-page { padding: 40px 0 64px; }
    .cp-section { padding: 36px 0; }
    .cp-section h2 { font-size: 1.375rem; }

    .cp-facts { grid-template-columns: 1fr; }
    .cp-facts > div { border-right: 0 !important; border-bottom: 1px solid var(--cp-line) !important; }
    .cp-facts > div:last-child { border-bottom: 0 !important; }

    /* tabela vira fichas empilhadas */
    .cp-table thead { position: absolute; left: -9999px; }
    .cp-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--cp-line); }
    .cp-table th, .cp-table td { display: block; width: auto !important; padding: 4px 0; border: 0; }
    .cp-table tbody th { font-size: 1rem; margin-bottom: 6px; }
    .cp-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        color: var(--cp-muted);
    }

    .cp-steps li { padding-left: 38px; }
}

@media print {
    .cp-toc { display: none; }
    .cp-layout { display: block; }
    .cp-section { break-inside: avoid; }
}