/* ========================================
   TERMOS DE USO
   ======================================== */

html {
    scroll-behavior: smooth;
}


/* ========================================
   HERO
   ======================================== */

.terms-hero {
    position: relative;
    overflow: hidden;

    padding: 220px 0 105px;

    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(200, 155, 109, 0.15),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            var(--green-950, #042f2a) 0%,
            var(--green-900, #075f55) 100%
        );

    color: #ffffff;
}

.terms-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -160px;

    width: 560px;
    height: 560px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    pointer-events: none;
}

.terms-hero::after {
    content: "";
    position: absolute;
    bottom: -260px;
    left: -180px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(200, 155, 109, 0.13);
    border-radius: 50%;

    pointer-events: none;
}

.terms-hero .container {
    position: relative;
    z-index: 2;
}


/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    line-height: 1.5;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;

    transition: color 0.25s ease;
}

.breadcrumbs a:hover {
    color: var(--champagne, #c89b6d);
}


/* ========================================
   EYEBROW
   ======================================== */

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 17px;

    color: var(--champagne, #c89b6d);
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.terms-eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background: currentColor;
}


/* ========================================
   TÍTULO DO HERO
   ======================================== */

.terms-hero h1 {
    max-width: 820px;
    margin: 0 0 21px;

    color: #ffffff;

    font-family:
        var(--font-display, "Cormorant Garamond"),
        Georgia,
        serif;

    font-size: clamp(3.3rem, 6vw, 6rem);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.05em;

    text-wrap: balance;
}

.terms-hero > .container > p {
    max-width: 720px;
    margin: 0;

    color: rgba(255, 255, 255, 0.74);
    font-size: 1.04rem;
    line-height: 1.8;
}

.terms-update {
    display: inline-flex;
    align-items: center;

    margin-top: 28px;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.055);

    color: rgba(255, 255, 255, 0.67);
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ========================================
   SEÇÃO PRINCIPAL
   ======================================== */

.terms-section {
    position: relative;

    /*
     * Precisa permanecer visible para o sticky funcionar.
     */
    overflow: visible;

    padding: 105px 0 120px;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(200, 155, 109, 0.08),
            transparent 22%
        ),
        linear-gradient(
            180deg,
            #fbf8f3 0%,
            #ffffff 100%
        );
}

.terms-section::before {
    content: "";
    position: absolute;
    top: 180px;
    left: -230px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(7, 95, 85, 0.07);
    border-radius: 50%;

    pointer-events: none;
}

.terms-layout {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 42px;
}


/* ========================================
   SIDEBAR FIXA DURANTE A ROLAGEM
   ======================================== */

.terms-navigation {
    position: relative;

    align-self: start;
    min-width: 0;
}

.terms-navigation-inner {
    position: sticky;
    top: 96px;

    max-height: calc(100vh - 120px);
    padding: 25px;

    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid rgba(7, 95, 85, 0.11);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 20px 50px rgba(4, 47, 42, 0.06),
        0 4px 14px rgba(0, 0, 0, 0.025);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    scrollbar-width: thin;
    scrollbar-color:
        rgba(7, 95, 85, 0.24)
        transparent;
}

.terms-navigation-inner > span {
    display: block;

    margin-bottom: 17px;

    color: var(--champagne, #c89b6d);
    font-size: 0.67rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.terms-navigation nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terms-navigation a {
    display: block;

    padding: 8px 10px;

    border-radius: 10px;

    color: rgba(29, 29, 29, 0.62);
    font-size: 0.77rem;
    line-height: 1.45;
    font-weight: 650;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.terms-navigation a:hover {
    background: var(--green-100, #e8f1ee);
    color: var(--green-900, #075f55);

    transform: translateX(3px);
}

.terms-navigation a:focus-visible {
    outline: 2px solid rgba(7, 95, 85, 0.3);
    outline-offset: 2px;

    background: var(--green-100, #e8f1ee);
    color: var(--green-900, #075f55);
}


/* Barra de rolagem da sidebar */

.terms-navigation-inner::-webkit-scrollbar {
    width: 5px;
}

.terms-navigation-inner::-webkit-scrollbar-track {
    background: transparent;
}

.terms-navigation-inner::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(7, 95, 85, 0.24);
}

.terms-navigation-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(7, 95, 85, 0.38);
}


/* ========================================
   CONTEÚDO DOS TERMOS
   ======================================== */

.terms-content {
    position: relative;
    min-width: 0;

    padding: 48px clamp(30px, 5vw, 64px);

    border: 1px solid rgba(7, 95, 85, 0.12);
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(4, 47, 42, 0.075),
        0 8px 24px rgba(0, 0, 0, 0.025);
}

.terms-content section {
    scroll-margin-top: 120px;
}

.terms-content section + section {
    margin-top: 44px;
    padding-top: 44px;

    border-top: 1px solid rgba(7, 95, 85, 0.09);
}

.terms-content h2 {
    margin: 0 0 20px;

    color: var(--green-950, #042f2a);

    font-family:
        var(--font-display, "Cormorant Garamond"),
        Georgia,
        serif;

    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.terms-content h3 {
    margin: 28px 0 12px;

    color: var(--green-900, #075f55);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 800;
}

.terms-content p {
    margin: 0 0 17px;

    color: rgba(29, 29, 29, 0.69);
    font-size: 0.96rem;
    line-height: 1.84;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

.terms-content a:not(.btn) {
    color: var(--green-900, #075f55);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(7, 95, 85, 0.28);
    text-underline-offset: 3px;

    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.terms-content a:not(.btn):hover {
    color: var(--champagne, #c89b6d);
    text-decoration-color: currentColor;
}


/* ========================================
   LISTAS
   ======================================== */

.terms-content ul {
    display: grid;
    gap: 10px;

    margin: 20px 0 22px;
    padding: 0;

    list-style: none;
}

.terms-content li {
    position: relative;

    padding-left: 25px;

    color: rgba(29, 29, 29, 0.69);
    font-size: 0.94rem;
    line-height: 1.72;
}

.terms-content li::before {
    content: "";
    position: absolute;
    top: 0.66em;
    left: 2px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--champagne, #c89b6d);

    box-shadow: 0 0 0 4px rgba(200, 155, 109, 0.1);
}

.terms-content li strong {
    color: var(--green-950, #042f2a);
}


/* ========================================
   AVISO INICIAL
   ======================================== */

.terms-notice {
    position: relative;
    overflow: hidden;

    margin-bottom: 46px;
    padding: 26px 28px;

    border: 1px solid rgba(7, 95, 85, 0.14);
    border-radius: 21px;

    background:
        linear-gradient(
            135deg,
            #edf5f1 0%,
            #f7faf8 100%
        );
}

.terms-notice::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -65px;

    width: 150px;
    height: 150px;

    border: 1px solid rgba(200, 155, 109, 0.2);
    border-radius: 50%;

    pointer-events: none;
}

.terms-notice strong {
    position: relative;
    z-index: 2;

    display: block;

    margin-bottom: 8px;

    color: var(--green-900, #075f55);
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.terms-notice p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: rgba(22, 49, 44, 0.74);
}


/* ========================================
   QUADRO DE IDENTIFICAÇÃO
   ======================================== */

.terms-info-card {
    margin: 25px 0 6px;
    padding: 26px;

    border: 1px solid rgba(7, 95, 85, 0.12);
    border-radius: 21px;

    background: var(--ivory, #fbf7f1);
}

.terms-info-card dl {
    display: grid;
    gap: 0;

    margin: 0;
}

.terms-info-card dl > div {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid rgba(7, 95, 85, 0.09);
}

.terms-info-card dl > div:first-child {
    padding-top: 0;
}

.terms-info-card dl > div:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.terms-info-card dt {
    color: var(--green-950, #042f2a);
    font-size: 0.78rem;
    line-height: 1.6;
    font-weight: 800;
}

.terms-info-card dd {
    margin: 0;

    color: rgba(29, 29, 29, 0.68);
    font-size: 0.88rem;
    line-height: 1.6;
}


/* ========================================
   ALERTAS
   ======================================== */

.terms-warning {
    margin: 25px 0;
    padding: 23px 25px;

    border-left: 4px solid var(--champagne, #c89b6d);
    border-radius: 0 18px 18px 0;

    background: #fbf6ef;
}

.terms-warning strong {
    display: block;

    margin-bottom: 7px;

    color: var(--green-950, #042f2a);
    font-size: 0.93rem;
    line-height: 1.5;
}

.terms-warning p {
    margin: 0;

    color: rgba(29, 29, 29, 0.66);
}


/* ========================================
   CARD DE CONTATO
   ======================================== */

.terms-contact-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin: 26px 0 18px;
    padding: 28px;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 90% 12%,
            rgba(200, 155, 109, 0.14),
            transparent 30%
        ),
        var(--green-950, #042f2a);

    box-shadow: 0 20px 50px rgba(4, 47, 42, 0.14);
}

.terms-contact-card::after {
    content: "";
    position: absolute;
    right: -65px;
    bottom: -85px;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    pointer-events: none;
}

.terms-contact-card > div,
.terms-contact-card .btn {
    position: relative;
    z-index: 2;
}

.terms-contact-card > div {
    max-width: 540px;
}

.terms-contact-card span,
.terms-contact-card strong {
    display: block;
}

.terms-contact-card span {
    margin-bottom: 5px;

    color: var(--champagne, #c89b6d);
    font-size: 0.66rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.terms-contact-card strong {
    margin-bottom: 5px;

    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.5;
}

.terms-contact-card p {
    margin: 0;

    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.6;
}

.terms-contact-button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 13px 22px;

    border: 1px solid #ffffff;
    border-radius: 999px;

    background: #ffffff;
    color: var(--green-950, #042f2a);

    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.terms-contact-button:hover {
    border-color: var(--champagne, #c89b6d);

    background: var(--champagne, #c89b6d);
    color: var(--green-950, #042f2a);

    transform: translateY(-2px);
}

.terms-contact-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.38);
    outline-offset: 4px;
}

.terms-small {
    color: rgba(29, 29, 29, 0.55) !important;
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
}


/* ========================================
   RESPONSIVO — DESKTOP MENOR
   ======================================== */

@media (max-width: 1050px) {
    .terms-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }

    .terms-navigation-inner {
        top: 90px;

        max-height: calc(100vh - 112px);
        padding: 20px;
    }

    .terms-content {
        padding: 42px 38px;
    }
}


/* ========================================
   RESPONSIVO — TABLET
   ======================================== */

@media (max-width: 850px) {
    .terms-hero {
        padding: 185px 0 85px;
    }

    .terms-section {
        padding: 85px 0 100px;
    }

    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-navigation {
        display: none;
    }

    .terms-content {
        padding: 38px 30px;

        border-radius: 26px;
    }
}


/* ========================================
   RESPONSIVO — MOBILE
   ======================================== */

@media (max-width: 700px) {
    .terms-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .terms-contact-card .btn {
        width: 100%;

        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .terms-hero {
        padding: 165px 0 70px;
    }

    .breadcrumbs {
        margin-bottom: 24px;

        font-size: 0.72rem;
    }

    .terms-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.1rem);
    }

    .terms-hero > .container > p {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .terms-section {
        padding: 68px 0 80px;
    }

    .terms-content {
        padding: 30px 22px;

        border-radius: 22px;
    }

    .terms-content section + section {
        margin-top: 36px;
        padding-top: 36px;
    }

    .terms-content h2 {
        font-size: 2rem;
    }

    .terms-content p {
        font-size: 0.92rem;
        line-height: 1.76;
    }

    .terms-content li {
        padding-left: 22px;

        font-size: 0.9rem;
    }

    .terms-notice {
        margin-bottom: 38px;
        padding: 22px;
    }

    .terms-warning {
        padding: 20px;
    }

    .terms-info-card {
        padding: 21px;
    }

    .terms-info-card dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .terms-contact-card {
        padding: 24px;
    }
}


/* ========================================
   ACESSIBILIDADE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .terms-navigation a,
    .terms-contact-button {
        transition: none;
    }

    .terms-contact-button:hover {
        transform: none;
    }
}