/* =========================================================
   ALFA TRANSPORTES - TERMOS / POLÍTICA DE PRIVACIDADE
   Arquivo: static/website/css/termos.css
   ========================================================= */

   .terms-page {
    background: #ffffff;
    color: var(--alfa-neutra-clara);
}

/* =========================================================
   HERO
   ========================================================= */

.terms-hero {
    padding: 2.5rem 0 1.25rem;
    background: #ffffff;
}

.terms-hero-card {
    padding: 2rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.terms-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.terms-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.terms-hero p {
    max-width: 680px;
    margin: 1rem 0 0;
    color: var(--alfa-neutra-clara);
    font-size: var(--fs-base, .92rem);
    line-height: 1.65;
}

.terms-hero-info {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.terms-hero-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #ffffff;
    background: var(--alfa-destaque);
    font-size: 1.55rem;
}

.terms-hero-info strong {
    display: block;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-lg, 1.12rem);
    font-weight: 700;
    line-height: 1.2;
}

.terms-hero-info span {
    display: block;
    margin-top: .3rem;
    color: var(--alfa-neutra-clara);
    line-height: 1.5;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.terms-content-section {
    padding: 1.25rem 0 4rem;
    background: #ffffff;
}

.terms-layout {
    align-items: flex-start;
}

/* =========================================================
   MENU LATERAL
   ========================================================= */

.terms-toc-card {
    position: sticky;
    top: 6rem;
    padding: 1rem;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.terms-toc-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-sm, .84rem);
    font-weight: 700;
}

.terms-toc-title i {
    color: var(--alfa-destaque);
}

.terms-toc {
    gap: .35rem;
}

.terms-toc .nav-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: .55rem .75rem;
    border-radius: 14px;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-sm, .84rem);
    font-weight: 750;
    line-height: 1.25;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.terms-toc .nav-link:hover {
    color: var(--alfa-destaque);
    background: var(--alfa-destaque-soft, #fff5f6);
}

.terms-toc .nav-link.active {
    color: #ffffff;
    background: var(--alfa-destaque);
    box-shadow: 0 8px 20px rgba(222, 30, 62, .20);
}

/* =========================================================
   CONTEÚDO
   ========================================================= */

.terms-document-card {
    padding: 1.5rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.scrollspy-container {
    position: relative;
    max-height: 78vh;
    overflow-y: auto;
    padding-right: .75rem;
    scroll-behavior: smooth;
}

.scrollspy-container::-webkit-scrollbar {
    width: 8px;
}

.scrollspy-container::-webkit-scrollbar-track {
    background: #eef0f3;
    border-radius: 999px;
}

.scrollspy-container::-webkit-scrollbar-thumb {
    background: var(--alfa-destaque);
    border-radius: 999px;
}

.terms-page .section {
    scroll-margin-top: 7rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
}

.terms-page .section:last-child {
    margin-bottom: 0;
}

.terms-page .section h2 {
    margin: 0 0 1rem;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-xl, 1.32rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.terms-page .section h3 {
    scroll-margin-top: 7rem;
    color: var(--alfa-neutra-escura);
    font-weight: 700;
}

.terms-page .section p {
    color: var(--alfa-neutra-escura);
    line-height: 1.75;
}

.terms-page .section ul {
    color: var(--alfa-neutra-escura);
    line-height: 1.65;
}

.terms-page .section li + li {
    margin-top: .35rem;
}

.terms-page .section a {
    color: var(--alfa-destaque);
    font-weight: 700;
    text-decoration: none;
}

.terms-page .section a:hover {
    color: var(--alfa-interacao-hover);
    text-decoration: underline;
}

.terms-page address {
    margin: 0;
    padding: 1rem;
    border-radius: 20px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

/* =========================================================
   TABELAS
   ========================================================= */

.terms-page .table-responsive {
    margin: 1rem 0;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, .08);
}

.terms-page table {
    margin-bottom: 0;
}

.terms-page .table thead th {
    white-space: nowrap;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--alfa-background);
    border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.terms-page .table tbody td {
    color: var(--alfa-neutra-escura);
    vertical-align: top;
}

.terms-page .table tbody td strong {
    color: var(--alfa-neutra-escura);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 991.98px) {
    .terms-hero {
        padding: 1.5rem 0 .75rem;
    }

    .terms-hero-card,
    .terms-document-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .terms-toc-card {
        position: relative;
        top: auto;
        margin-bottom: 1rem;
        border-radius: 24px;
    }

    .terms-toc {
        max-height: 260px;
        overflow-y: auto;
        padding-right: .25rem;
    }

    .scrollspy-container {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .terms-hero h1 {
        font-size: 1.55rem;
    }

    .terms-hero-info {
        padding: 1rem;
    }

    .terms-hero-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 16px;
        font-size: 1.25rem;
    }

    .terms-document-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .terms-page .section {
        padding: 1rem;
        border-radius: 20px;
    }

    .terms-page .section h2 {
        font-size: 1.15rem;
    }

    .terms-page .table-responsive {
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    .terms-hero-card,
    .terms-toc-card,
    .terms-document-card {
        border-radius: 20px;
    }
}
