/* =====================================================================
   POLÍTICA DE PRIVACIDADE / TERMOS DE USO
   Psicóloga Meire França — folha de estilo compartilhada
   Reaproveita a paleta, tipografia e o padrão de header/footer do
   site institucional (assets/css/index.css), mas é autocontida —
   não depende daquele arquivo.
   ===================================================================== */

/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

:root {
    /* ══ Tons de base (mesma paleta terrosa do site) ══ */
    --ink: #3D1A0D;
    --ink-soft: #76331A;
    --ink-warm: #8C3D22;
    --ink-mid: #A84520;

    --gold: #FFBD2C;
    --gold-light: #FFD97A;
    --gold-deep: #F87319;

    --cream: #FFEEC8;
    --cream-soft: #FFF8ED;
    --cream-dark: #F5DFB0;
    --parchment: #FAF0DC;

    --text: #2E1206;
    --text-soft: #5A2D0C;
    --text-muted: #A0622A;

    --border: rgba(168, 69, 32, 0.14);
    --border-solid: #C4763A;
    --border-warm: rgba(248, 115, 25, 0.22);

    --success: #2a7d4f;
    --danger: #c0392b;

    --shadow-sm: 0 1px 4px rgba(61, 26, 13, 0.08);
    --shadow-md: 0 4px 18px rgba(61, 26, 13, 0.12);
    --shadow-lg: 0 12px 40px rgba(61, 26, 13, 0.16);

    --gradient: linear-gradient(135deg, var(--ink-mid) 0%, var(--ink-soft) 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', -apple-system, sans-serif;
    background: var(--cream-soft);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* =====================================================================
   1. HEADER / NAV — idêntico ao padrão do site institucional
   ===================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ink);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-area img {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream-soft);
    letter-spacing: .02em;
}

.logo-sub {
    font-family: 'Lato', sans-serif;
    font-size: .68rem;
    color: var(--gold);
    letter-spacing: .12em;
    font-weight: 600;
    text-transform: uppercase;
}

#menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

#menu a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s ease;
}

#menu a:hover,
#menu a.is-current {
    color: var(--white, var(--cream-soft));
    background: rgba(255, 255, 255, .08);
}

.btn-cta-nav {
    background: var(--ink-mid) !important;
    color: var(--cream-soft) !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-cta-nav:hover {
    background: var(--ink-warm) !important;
}

#btn-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream-soft);
    border-radius: 2px;
    transition: 0.3s ease;
}

#btn-mobile.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#btn-mobile.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#btn-mobile.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    #btn-mobile {
        display: flex;
    }

    #menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 16px 32px 40px;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease;
    }

    #menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    #menu a {
        display: flex;
        align-items: center;
        min-height: 26px;
        padding: 15px 2px;
        line-height: 1.25;
        border-radius: 0;
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.3rem;
        font-weight: 600;
        letter-spacing: .01em;
        color: var(--cream-soft);
    }

    #menu a:hover {
        color: var(--gold);
        background: none;
    }

    .btn-cta-nav {
        margin: 26px 2px 0;
        justify-content: center !important;
        border-radius: 999px !important;
        padding: 13px 20px !important;
        font-size: .95rem;
    }
}

body.menu-open {
    overflow: hidden;
}

/* =====================================================================
   2. HERO / CABEÇALHO DA PÁGINA
   ===================================================================== */
.legal-hero {
    background: var(--gradient);
    padding: 140px 0 56px;
    color: var(--cream-soft);
}

.legal-hero .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.legal-hero .section-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-light);
}

.legal-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    margin-bottom: 14px;
}

.legal-hero p {
    font-size: 15px;
    color: rgba(255, 248, 237, .78);
    max-width: 620px;
    line-height: 1.7;
}

.legal-hero .legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255, 248, 237, .6);
}

.legal-hero .legal-meta strong {
    color: var(--gold-light);
    font-weight: 700;
}

.legal-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 217, 122, .3);
    color: var(--cream-soft);
    font-size: 13px;
    font-weight: 600;
    transition: all .25s ease;
}

.legal-switch:hover {
    background: rgba(255, 217, 122, .12);
    border-color: var(--gold-light);
}

/* =====================================================================
   3. LAYOUT DE LEITURA — sumário fixo + conteúdo
   ===================================================================== */
.legal-body {
    padding: 56px 0 100px;
}

.legal-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
    min-width: 0;
}

.legal-toc,
.legal-content {
    min-width: 0;
}

/* ── Sumário (sticky no desktop) ── */
.legal-toc {
    position: sticky;
    top: 96px;
    background: var(--parchment);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 20px;
}

.legal-toc-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-toc ol {
    display: flex;
    flex-direction: column;
    gap: 4px;
    counter-reset: legal-toc-counter;
}

.legal-toc li {
    counter-increment: legal-toc-counter;
}

.legal-toc a {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
    padding: 7px 8px;
    border-radius: 8px;
    transition: all .2s ease;
    line-height: 1.4;
}

.legal-toc a::before {
    content: counter(legal-toc-counter);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-deep);
    min-width: 16px;
}

.legal-toc a:hover {
    background: var(--cream);
    color: var(--ink);
}

.legal-toc a.is-active {
    background: var(--ink);
    color: var(--cream-soft);
}

.legal-toc a.is-active::before {
    color: var(--gold-light);
}

/* ── Conteúdo ── */
.legal-content {
    background: var(--cream-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 46px;
    box-shadow: var(--shadow-sm);
}

.legal-content section {
    scroll-margin-top: 96px;
}

.legal-content section+section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px dashed var(--border);
}

.legal-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-content h2 .legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--gradient);
    color: var(--cream-soft);
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.legal-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-warm);
    margin: 22px 0 8px;
}

.legal-content p {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol.legal-list {
    margin: 10px 0 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content ul li,
.legal-content ol.legal-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.7;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-deep);
}

.legal-content ol.legal-list {
    counter-reset: legal-list-counter;
}

.legal-content ol.legal-list li {
    counter-increment: legal-list-counter;
}

.legal-content ol.legal-list li::before {
    content: counter(legal-list-counter) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--gold-deep);
    font-size: 13px;
}

.legal-content strong {
    color: var(--ink);
    font-weight: 700;
}

.legal-content a {
    color: var(--ink-warm);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--border-warm);
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--gold-deep);
}

/* ── Tabela de dados coletados por produto ── */
.legal-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    margin: 14px 0 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    font-size: 13.5px;
}

.legal-table th {
    background: var(--parchment);
    color: var(--ink);
    font-weight: 800;
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.legal-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    vertical-align: top;
}

.legal-table tr:nth-child(even) td {
    background: rgba(255, 189, 44, .04);
}

/* ── Caixa de destaque (aviso importante) ── */
.legal-callout {
    display: flex;
    gap: 14px;
    background: var(--cream);
    border: 1px solid var(--border-warm);
    border-left: 4px solid var(--gold-deep);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0;
}

.legal-callout i {
    color: var(--gold-deep);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-callout p {
    margin-bottom: 0;
    font-size: 13.5px;
}

.legal-callout--danger {
    border-color: rgba(192, 57, 43, .25);
    border-left-color: var(--danger);
}

.legal-callout--danger i {
    color: var(--danger);
}

/* =====================================================================
   4. RESPONSIVO
   ===================================================================== */
@media (max-width: 980px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-toc {
        position: relative;
        top: 0;
    }

    .legal-content {
        padding: 30px 24px;
    }
}

@media (max-width: 600px) {
    .legal-hero {
        padding: 120px 0 44px;
    }

    .legal-content {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .legal-content h2 {
        font-size: 19px;
    }
}

/* =====================================================================
   5. FOOTER — idêntico ao padrão do site institucional
   ===================================================================== */
.footer-legal-links a:hover,
.footer-legal-links a.is-current {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer-nav-grid {
        justify-content: center;
    }

    .footer-contact-list {
        align-items: center;
    }

    .footer-contact-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    }
