/*
 * Páginas de privacidade (LGPD): Política de Privacidade, Política de Cookies, Termo e registros de aceite.
 * Cores da marca NOVO: laranja escurecido (passa WCAG AA com texto branco) e azul-marinho.
 */
.lgpd-doc, .lgpd-modal, .lgpd-public {
    --lgpd-brand: #c2561b;
    --lgpd-brand-hover: #a94b17;
    --lgpd-brand-soft: #fff4ec;
    --lgpd-navy: #1a2948;
    --lgpd-navy-2: #26396a;
    --lgpd-ink: #1f2937;
    --lgpd-muted: #667085;
    --lgpd-line: #e4e7ec;
    --lgpd-surface: #f6f8fb;
}

.lgpd-doc { color: var(--lgpd-ink); margin-bottom: 2.5rem; padding: 0 .15rem; }

/* Cabeçalho do documento */
.lgpd-hero {
    border: 0; border-radius: 14px; overflow: hidden; margin-bottom: 1.75rem; color: #fff;
    background: radial-gradient(circle at 90% 0, rgba(221, 109, 37, .35) 0, transparent 45%),
                linear-gradient(135deg, var(--lgpd-navy) 0%, var(--lgpd-navy-2) 100%);
    box-shadow: 0 10px 30px -12px rgba(26, 41, 72, .45);
}
.lgpd-hero-body {
    display: flex; gap: 1.4rem; align-items: flex-start; padding: 2.25rem 2.35rem 2.4rem;
}
.lgpd-hero-body > div { min-width: 0; flex: 1 1 auto; padding-top: .2rem; }
.lgpd-hero-icon {
    flex: 0 0 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); color: #ffb27d; font-size: 1.6rem; margin-top: .1rem;
}
.lgpd-eyebrow {
    display: block; text-transform: uppercase; letter-spacing: .09em; font-size: .7rem; font-weight: 600;
    color: #ffb27d; margin: 0 0 .45rem;
}
.lgpd-title { font-size: 1.5rem; line-height: 1.3; font-weight: 700; margin: 0 0 .85rem; color: #fff; }
.lgpd-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.15rem;
    font-size: .82rem; line-height: 1.55; color: rgba(255, 255, 255, .82); margin: 0; padding: 0;
}
.lgpd-meta > span { display: inline-block; padding: .1rem 0; }
.lgpd-meta i { margin-right: .3rem; opacity: .8; }
.lgpd-meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lgpd-badge { background: var(--lgpd-brand); color: #fff; border-radius: 999px; padding: .28rem .8rem; font-weight: 600; font-size: .78rem; }

/* Cartões */
.lgpd-card { background: #fff; border: 1px solid var(--lgpd-line); border-radius: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); margin-bottom: 1.5rem; }
.lgpd-card-body { padding: 1.55rem 1.65rem; }
.lgpd-aside .lgpd-card:last-child { margin-bottom: 0; }

/* Texto do documento */
.lgpd-content { padding: 2.35rem 2.65rem; font-size: .95rem; line-height: 1.75; }
.lgpd-content p, .lgpd-content li { font-size: .95rem; line-height: 1.75; color: var(--lgpd-ink); }
.lgpd-content p { margin: 0 0 1.05rem; }
.lgpd-content > p:first-child { font-size: 1rem; }
.lgpd-content > *:last-child { margin-bottom: 0; }
.lgpd-content h2 {
    display: flex; align-items: center; gap: .6rem; font-size: 1.12rem; font-weight: 700; color: var(--lgpd-navy);
    margin: 2.5rem 0 1rem; scroll-margin-top: 96px;
}
.lgpd-content h2::before { content: ""; flex: 0 0 4px; height: 1.15em; border-radius: 2px; background: var(--lgpd-brand); }
.lgpd-content h2:first-child { margin-top: 0; }
.lgpd-content h3 { font-size: 1rem; font-weight: 700; color: var(--lgpd-navy); margin: 1.75rem 0 .75rem; }
.lgpd-content ul { list-style: disc; padding-left: 1.35rem; margin: 0 0 1.15rem; }
.lgpd-content ol { list-style: decimal; padding-left: 1.55rem; margin: 0 0 1.15rem; }
.lgpd-content ol > li { padding-left: .25rem; margin-bottom: .65rem; }
.lgpd-content ul > li { margin-bottom: .45rem; }
.lgpd-content li ul { list-style: circle; margin: .45rem 0 .25rem; }
.lgpd-content li::marker { color: var(--lgpd-brand); font-weight: 600; }
.lgpd-content a { color: var(--lgpd-brand); text-decoration: underline; text-underline-offset: 2px; }
.lgpd-content a:hover { color: var(--lgpd-brand-hover); }
.lgpd-content strong { color: var(--lgpd-navy); font-weight: 600; }
.lgpd-content code { color: var(--lgpd-navy); background: #eef2f8; padding: .08rem .38rem; border-radius: 4px; font-size: .84em; white-space: nowrap; }
.lgpd-content blockquote, .lgpd-note {
    border-left: 4px solid var(--lgpd-brand); background: var(--lgpd-brand-soft); border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem; margin: 0 0 1.4rem; font-size: .92rem;
}

/* Tabelas (cookies, bases legais) */
.lgpd-table-wrap { border: 1px solid var(--lgpd-line); border-radius: 10px; overflow-x: auto; margin: .35rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
.lgpd-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .86rem; min-width: 620px; }
.lgpd-table th, .lgpd-table td { border: 0; border-bottom: 1px solid var(--lgpd-line); padding: .85rem 1rem; vertical-align: top; text-align: left; }
.lgpd-table thead th {
    background: var(--lgpd-surface); color: var(--lgpd-navy); font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.lgpd-table tbody tr:last-child td { border-bottom: 0; }
.lgpd-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.lgpd-table tbody tr:hover td { background: var(--lgpd-brand-soft); }
.lgpd-table td:first-child { font-weight: 600; color: var(--lgpd-navy); }
.lgpd-table td, .lgpd-table td p { line-height: 1.55; font-size: .86rem; }

/* Coluna lateral */
.lgpd-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.15rem; }
.lgpd-aside .lgpd-card { margin-bottom: 0; }
.lgpd-side-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lgpd-muted); font-weight: 700; margin: 0 0 .85rem; }
.lgpd-toc summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 1.3rem 1.45rem; gap: .75rem; min-height: 3.4rem;
}
.lgpd-toc summary::-webkit-details-marker { display: none; }
.lgpd-toc summary .lgpd-side-title { margin: 0; }
.lgpd-toc[open] summary { padding-bottom: .65rem; min-height: 0; }
.lgpd-toc > nav.lgpd-card-body,
.lgpd-toc .lgpd-toc-nav { padding: .4rem 1.25rem 1.3rem; }
.lgpd-toc-list { list-style: none; padding: 0; margin: 0; max-height: 55vh; overflow-y: auto; }
.lgpd-toc-list li + li { margin-top: .15rem; }
.lgpd-toc-list a {
    display: block; padding: .5rem .75rem; border-left: 2px solid var(--lgpd-line); color: var(--lgpd-ink);
    font-size: .83rem; line-height: 1.4; text-decoration: none; border-radius: 0 6px 6px 0;
}
.lgpd-toc-list a:hover, .lgpd-toc-list a.active { border-left-color: var(--lgpd-brand); color: var(--lgpd-brand); background: var(--lgpd-brand-soft); }
.lgpd-related { list-style: none; padding: 0; margin: 0; }
.lgpd-related li + li { margin-top: .15rem; }
.lgpd-related a { display: flex; align-items: center; gap: .7rem; padding: .55rem .2rem; color: var(--lgpd-ink); font-size: .87rem; text-decoration: none; }
.lgpd-related a i { width: 18px; text-align: center; color: var(--lgpd-muted); }
.lgpd-related a:hover, .lgpd-related a.current { color: var(--lgpd-brand); }
.lgpd-related a.current { font-weight: 600; }
.lgpd-related a.current i { color: var(--lgpd-brand); }
.lgpd-dpo { background: var(--lgpd-brand-soft); border-color: #fbd9c3; }
.lgpd-dpo p { margin: 0 0 .55rem; font-size: .87rem; line-height: 1.55; }
.lgpd-dpo p:last-child { margin-bottom: 0; }
.lgpd-dpo a { color: var(--lgpd-brand); font-weight: 600; word-break: break-all; }

/* Status do aceite / ciência */
.lgpd-status { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid; border-radius: 12px; padding: 1.15rem 1.35rem; margin-bottom: 1.5rem; }
.lgpd-status i { font-size: 1.35rem; line-height: 1; margin-top: .15rem; }
.lgpd-status strong { display: block; margin-bottom: .25rem; }
.lgpd-status p { margin: 0; font-size: .88rem; line-height: 1.55; color: inherit; }
.lgpd-status.is-ok { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.lgpd-status.is-pending { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.lgpd-status.is-off { background: #f2f4f7; border-color: #d0d5dd; color: #344054; }

/* Área de aceite / histórico */
.lgpd-section-title { font-size: 1rem; font-weight: 700; color: var(--lgpd-navy); margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; }
.lgpd-section-title i { color: var(--lgpd-brand); }
.lgpd-check { display: flex; gap: .75rem; align-items: flex-start; background: var(--lgpd-surface); border: 1px solid var(--lgpd-line); border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1.15rem; cursor: pointer; }
.lgpd-check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--lgpd-brand); }
.lgpd-check span { font-size: .9rem; line-height: 1.55; }
.lgpd-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.lgpd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 8px; padding: .6rem 1.15rem;
    font-weight: 600; font-size: .9rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.lgpd-btn-brand { background: var(--lgpd-brand); color: #fff !important; }
.lgpd-btn-brand:hover { background: var(--lgpd-brand-hover); }
.lgpd-btn-brand:disabled { opacity: .5; cursor: not-allowed; }
.lgpd-btn-ghost { background: #fff; color: var(--lgpd-navy) !important; border-color: var(--lgpd-line); }
.lgpd-btn-ghost:hover { background: var(--lgpd-surface); }
.lgpd-btn:focus-visible { outline: 3px solid rgba(221, 109, 37, .35); outline-offset: 2px; }
.lgpd-empty { text-align: center; padding: 2rem 1rem; color: var(--lgpd-muted); }
.lgpd-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; color: #98a2b3; }

/* Modal */
.lgpd-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.lgpd-modal .modal-header {
    border: 0; padding: 1.25rem 1.5rem; color: #fff;
    background: radial-gradient(circle at 95% 0, rgba(221, 109, 37, .35) 0, transparent 45%),
                linear-gradient(135deg, var(--lgpd-navy) 0%, var(--lgpd-navy-2) 100%);
}
.lgpd-modal .modal-title { color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; gap: .75rem; align-items: center; }
.lgpd-modal .modal-title .lgpd-hero-icon { flex-basis: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
.lgpd-modal .modal-title small { display: block; font-weight: 500; font-size: .75rem; color: rgba(255, 255, 255, .75); }
.lgpd-modal .modal-body { padding: 1.35rem 1.5rem; }
.lgpd-modal .modal-footer { background: var(--lgpd-surface); border-top: 1px solid var(--lgpd-line); padding: 1rem 1.5rem; display: block; }
.lgpd-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .65rem; margin-bottom: 1rem; padding: 0; list-style: none; }
.lgpd-highlights li { display: flex; gap: .6rem; background: var(--lgpd-surface); border: 1px solid var(--lgpd-line); border-radius: 10px; padding: .7rem .85rem; font-size: .84rem; line-height: 1.45; margin: 0; }
.lgpd-highlights i { color: var(--lgpd-brand); margin-top: .15rem; }
.lgpd-scroll { max-height: 42vh; overflow-y: auto; border: 1px solid var(--lgpd-line); border-radius: 10px; background: #fff; }
.lgpd-scroll .lgpd-content { padding: 1.25rem 1.4rem; }
.lgpd-scroll .lgpd-content h2 { font-size: 1rem; margin-top: 1.5rem; }

/* Página pública (sem login), no mesmo fundo da tela de login */
.lgpd-public {
    min-height: 100vh; padding: 2rem 1.25rem 2.75rem; font-family: Montserrat, sans-serif;
    background: radial-gradient(circle at 15% 10%, #eef5ff 0, transparent 45%), radial-gradient(circle at 85% 90%, #fff1e8 0, transparent 40%), #e8f1fb;
}
.lgpd-public-inner { max-width: 1200px; margin: 0 auto; }
.lgpd-public-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.lgpd-public-bar img { height: 42px; width: auto; }
.lgpd-public-foot { text-align: center; font-size: .82rem; color: var(--lgpd-muted); margin-top: 2rem; padding-top: .25rem; }
.lgpd-public-foot a { color: var(--lgpd-brand); }

@media (max-width: 991.98px) {
    .lgpd-aside { position: static; }
    .lgpd-content { padding: 1.75rem 1.5rem; }
    .lgpd-hero-body { padding: 1.75rem 1.5rem 1.85rem; gap: 1.1rem; }
    .lgpd-title { font-size: 1.25rem; margin-bottom: .8rem; }
    .lgpd-card-body { padding: 1.4rem 1.45rem; }
    .lgpd-toc summary { padding: 1.25rem 1.4rem; }
}
@media (max-width: 575.98px) {
    .lgpd-public { padding: 1.4rem 1rem 2.25rem; }
    .lgpd-hero-icon { display: none; }
    .lgpd-hero-body { padding: 1.55rem 1.3rem 1.65rem; }
    .lgpd-content { padding: 1.55rem 1.25rem; }
    .lgpd-card-body { padding: 1.3rem 1.25rem; }
    .lgpd-actions { justify-content: stretch; }
    .lgpd-actions .lgpd-btn { flex: 1 1 100%; }
}
@media print {
    .lgpd-aside, .lgpd-public-bar, .lgpd-actions { display: none !important; }
    .lgpd-hero { background: none; color: #000; box-shadow: none; }
    .lgpd-title, .lgpd-meta, .lgpd-meta a { color: #000; }
    .lgpd-table-wrap { overflow: visible; }
}

/* Modal antigo "Termo de sigilo e confidencialidade" (telas de filiados, doadores, financeiro...) no visual novo */
.lgpd-legacy .modal-header { justify-content: flex-start; text-align: left; }
.lgpd-legacy .modal-body.lgpd-content { padding: 1.35rem 1.5rem; max-height: 60vh; overflow-y: auto; }
.lgpd-legacy .modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.lgpd-legacy .modal-footer > * { margin: 0; }
