/* ============================================================
   Web4Business - Página TermosServicos  ·  CSS específico
   Estilos exclusivos do conteúdo desta página (Termos de Uso).
   Todos os seletores são escopados sob .EstTermosServicos (classe no <body>),
   evitando vazamento para outras páginas.
   (o .page-hero e os CTAs, compartilhados, ficam no css.css)
   Identidade mono escura: grafite + branco, sem azul.
   ============================================================ */

/* tokens locais de acento grafite */
.EstTermosServicos .terms {
    --ink-2: #141414;
    --graphite: linear-gradient(135deg, #3a3a3a 0%, #141414 100%);
    --line: #e7e7e7;
}

/* ============================================================
   LAYOUT - sumário lateral + conteúdo
   ============================================================ */
.EstTermosServicos .terms-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

/* ---- Sumário (sticky) ---- */
.EstTermosServicos .terms-toc {
    position: sticky;
    top: 110px;
    padding: 30px 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.EstTermosServicos .terms-toc-title {
    font-weight: 600;
    font-size: clamp(12px, 1.1vw, 13px);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 18px;
}

.EstTermosServicos .terms-toc ol {
    list-style: none;
    display: grid;
    gap: 3px;
    counter-reset: none;
}

.EstTermosServicos .terms-toc a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--gray);
    font-weight: 300;
    font-size: clamp(14px, 1.3vw, 15px);
    line-height: 1.4;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.EstTermosServicos .terms-toc a:hover {
    background: #f5f5f5;
    color: var(--ink);
    border-left-color: #141414;
}

/* ============================================================
   CONTEÚDO
   ============================================================ */
.EstTermosServicos .terms-content {
    max-width: 820px;
}

.EstTermosServicos .terms-updated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--gray);
    font-weight: 300;
    font-size: clamp(13px, 1.3vw, 15px);
}

.EstTermosServicos .terms-updated strong {
    color: var(--ink);
    font-weight: 600;
}

.EstTermosServicos .terms-updated i {
    width: 18px;
    height: 18px;
    stroke-width: 1.7;
    color: var(--ink-2);
}

.EstTermosServicos .terms-intro {
    color: var(--gray);
    font-weight: 300;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.65;
    padding-bottom: 36px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.EstTermosServicos .terms-intro strong {
    color: var(--ink);
    font-weight: 600;
}

/* ---- bloco numerado ---- */
.EstTermosServicos .terms-block {
    padding-top: 40px;
    scroll-margin-top: 100px;
}

.EstTermosServicos .terms-block h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.2;
    letter-spacing: -.5px;
    color: var(--ink);
    margin-bottom: 18px;
}

.EstTermosServicos .terms-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--graphite);
    color: #fff;
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 19px);
    letter-spacing: 0;
}

.EstTermosServicos .terms-block p {
    color: var(--gray);
    font-weight: 300;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    margin-bottom: 16px;
}

.EstTermosServicos .terms-block p:last-child {
    margin-bottom: 0;
}

.EstTermosServicos .terms-block strong {
    color: var(--ink);
    font-weight: 600;
}

/* ---- listas ---- */
.EstTermosServicos .terms-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 4px 0 18px;
}

.EstTermosServicos .terms-list li {
    position: relative;
    padding-left: 28px;
    color: var(--gray);
    font-weight: 300;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
}

.EstTermosServicos .terms-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--graphite);
    transform: rotate(45deg);
}

.EstTermosServicos .terms-list strong {
    color: var(--ink);
    font-weight: 600;
}

/* ---- link de contato ---- */
.EstTermosServicos .terms-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 16px 26px;
    border-radius: 14px;
    background: var(--graphite);
    color: #fff;
    font-weight: 600;
    font-size: clamp(15px, 1.4vw, 18px);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.EstTermosServicos .terms-contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(20, 20, 20, .26);
}

.EstTermosServicos .terms-contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
}

.EstTermosServicos .terms-contact-ico i {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.EstTermosServicos .terms-contact-link > i {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
    transition: transform .3s var(--ease);
}

.EstTermosServicos .terms-contact-link:hover > i {
    transform: translateX(4px);
}

/* ============================================================
   RESPONSIVO - específico desta página
   ============================================================ */
@media (max-width: 960px) {
    .EstTermosServicos .terms-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* sumário vira bloco normal no topo, não sticky */
    .EstTermosServicos .terms-toc {
        position: static;
        margin-bottom: 40px;
    }

    .EstTermosServicos .terms-toc ol {
        grid-template-columns: 1fr 1fr;
        gap: 2px 16px;
    }

    .EstTermosServicos .terms-content {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .EstTermosServicos .terms-toc {
        padding: 24px 20px;
    }

    .EstTermosServicos .terms-toc ol {
        grid-template-columns: 1fr;
    }

    .EstTermosServicos .terms-block {
        padding-top: 34px;
    }

    .EstTermosServicos .terms-block h2 {
        gap: 12px;
    }

    .EstTermosServicos .terms-num {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .EstTermosServicos .terms-contact-link {
        width: 100%;
        justify-content: flex-start;
    }
}
