/* ========================================
   POLÍTICA DE COOKIES
   ======================================== */

html {
    scroll-behavior: smooth;
}


/* ========================================
   HERO
   ======================================== */

.cookies-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;
}

.cookies-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;
}

.cookies-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;
}

.cookies-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);

    transition: color 0.25s ease;
}

.breadcrumbs a:hover {
    color: var(--champagne, #c89b6d);
}


/* ========================================
   EYEBROW
   ======================================== */

.cookies-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;
}

.cookies-eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background: currentColor;
}


/* ========================================
   TÍTULO DO HERO
   ======================================== */

.cookies-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;
}

.cookies-hero > .container > p {
    max-width: 720px;
    margin: 0;

    color: rgba(255, 255, 255, 0.74);
    font-size: 1.04rem;
    line-height: 1.8;
}

.cookies-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);
}


/* ========================================
   ÁREA PRINCIPAL
   ======================================== */

.cookies-section {
    position: relative;

    /*
     * O overflow precisa permanecer visível.
     * Um elemento-pai com overflow hidden pode
     * impedir o funcionamento do position sticky.
     */
    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%
        );
}

.cookies-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;
}

.cookies-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
   ======================================== */

.cookies-navigation {
    position: relative;

    align-self: start;
    min-width: 0;
}

.cookies-navigation-inner {
    /*
     * Sticky mantém a sidebar dentro da coluna,
     * mas fixa na tela enquanto a política rola.
     */
    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;
}

.cookies-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;
}

.cookies-navigation nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookies-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;
}

.cookies-navigation a:hover {
    background: var(--green-100, #e8f1ee);
    color: var(--green-900, #075f55);

    transform: translateX(3px);
}

.cookies-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 */

.cookies-navigation-inner::-webkit-scrollbar {
    width: 5px;
}

.cookies-navigation-inner::-webkit-scrollbar-track {
    background: transparent;
}

.cookies-navigation-inner::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(7, 95, 85, 0.24);
}

.cookies-navigation-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(7, 95, 85, 0.38);
}


/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */

.cookies-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);
}

.cookies-content section {
    scroll-margin-top: 120px;
}

.cookies-content section + section {
    margin-top: 44px;
    padding-top: 44px;

    border-top: 1px solid rgba(7, 95, 85, 0.09);
}

.cookies-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;
}

.cookies-content h3 {
    margin: 28px 0 12px;

    color: var(--green-900, #075f55);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 800;
}

.cookies-content p {
    margin: 0 0 17px;

    color: rgba(29, 29, 29, 0.69);
    font-size: 0.96rem;
    line-height: 1.84;
}

.cookies-content p:last-child {
    margin-bottom: 0;
}

.cookies-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;
}

.cookies-content a:not(.btn):hover {
    color: var(--champagne, #c89b6d);
    text-decoration-color: currentColor;
}


/* ========================================
   LISTAS
   ======================================== */

.cookies-content ul {
    display: grid;
    gap: 10px;

    margin: 20px 0 22px;
    padding: 0;

    list-style: none;
}

.cookies-content li {
    position: relative;

    padding-left: 25px;

    color: rgba(29, 29, 29, 0.69);
    font-size: 0.94rem;
    line-height: 1.72;
}

.cookies-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);
}

.cookies-content li strong {
    color: var(--green-950, #042f2a);
}


/* ========================================
   AVISO INICIAL
   ======================================== */

.cookies-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%
        );
}

.cookies-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;
}

.cookies-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;
}

.cookies-notice p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: rgba(22, 49, 44, 0.74);
}


/* ========================================
   CARDS DAS CATEGORIAS
   ======================================== */

.cookie-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;

    margin-top: 28px;
}

.cookie-category-card {
    position: relative;
    overflow: hidden;

    padding: 24px;

    border: 1px solid rgba(7, 95, 85, 0.12);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #f2f7f4 0%,
            #e8f1ec 100%
        );
}

.cookie-category-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -52px;

    width: 120px;
    height: 120px;

    border: 1px solid rgba(200, 155, 109, 0.18);
    border-radius: 50%;

    pointer-events: none;
}

.cookie-category-status {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    margin-bottom: 16px;
    padding: 7px 10px;

    border-radius: 999px;

    font-size: 0.63rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cookie-category-status.required {
    background: var(--green-950, #042f2a);
    color: #ffffff;
}

.cookie-category-status.optional {
    border: 1px solid rgba(200, 155, 109, 0.3);

    background: rgba(255, 255, 255, 0.65);
    color: #9a7048;
}

.cookie-category-card h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 9px;

    color: var(--green-950, #042f2a);

    font-family:
        var(--font-display, "Cormorant Garamond"),
        Georgia,
        serif;

    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 600;
}

.cookie-category-card p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: rgba(22, 49, 44, 0.68);
    font-size: 0.88rem;
    line-height: 1.68;
}


/* ========================================
   ALERTAS
   ======================================== */

.cookies-warning {
    margin: 25px 0;
    padding: 23px 25px;

    border-left: 4px solid var(--champagne, #c89b6d);
    border-radius: 0 18px 18px 0;

    background: #fbf6ef;
}

.cookies-warning strong {
    display: block;

    margin-bottom: 7px;

    color: var(--green-950, #042f2a);
    font-size: 0.93rem;
    line-height: 1.5;
}

.cookies-warning p {
    margin: 0;

    color: rgba(29, 29, 29, 0.66);
}


/* ========================================
   TABELA DE COOKIES
   ======================================== */

.cookies-table-wrapper {
    width: 100%;
    margin: 26px 0;

    overflow-x: auto;

    border: 1px solid rgba(7, 95, 85, 0.12);
    border-radius: 20px;

    background: #ffffff;
}

.cookies-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;
}

.cookies-table th,
.cookies-table td {
    padding: 17px 18px;

    border-bottom: 1px solid rgba(7, 95, 85, 0.09);

    text-align: left;
    vertical-align: top;
}

.cookies-table th {
    background: var(--green-950, #042f2a);
    color: #ffffff;

    font-size: 0.7rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookies-table td {
    color: rgba(29, 29, 29, 0.68);
    font-size: 0.82rem;
    line-height: 1.6;
}

.cookies-table tbody tr:last-child td {
    border-bottom: 0;
}

.cookies-table tbody tr:nth-child(even) {
    background: #f8fbf9;
}


/* ========================================
   NOTA DE REVISÃO
   ======================================== */

.cookies-editor-note {
    margin: 24px 0 0;
    padding: 22px 24px;

    border: 1px dashed rgba(200, 155, 109, 0.5);
    border-radius: 18px;

    background: #fffaf4;
}

.cookies-editor-note strong {
    display: block;

    margin-bottom: 7px;

    color: #8a633e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cookies-editor-note p {
    margin: 0;

    color: rgba(80, 59, 38, 0.74);
    font-size: 0.87rem;
}


/* ========================================
   PAINEL DE PREFERÊNCIAS
   ======================================== */

.cookies-preference-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin: 26px 0 15px;
    padding: 28px;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 92% 14%,
            rgba(200, 155, 109, 0.16),
            transparent 30%
        ),
        var(--green-950, #042f2a);

    box-shadow: 0 20px 50px rgba(4, 47, 42, 0.14);
}

.cookies-preference-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;
}

.cookies-preference-card > div,
.cookies-preference-card .btn {
    position: relative;
    z-index: 2;
}

.cookies-preference-card > div {
    max-width: 560px;
}

.cookies-preference-card span,
.cookies-preference-card strong {
    display: block;
}

.cookies-preference-card span {
    margin-bottom: 5px;

    color: var(--champagne, #c89b6d);
    font-size: 0.65rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cookies-preference-card strong {
    margin-bottom: 7px;

    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.45;
}

.cookies-preference-card p {
    margin: 0;

    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    line-height: 1.65;
}

.cookies-settings-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: inherit;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.cookies-settings-button:hover {
    border-color: var(--champagne, #c89b6d);

    background: var(--champagne, #c89b6d);
    color: var(--green-950, #042f2a);

    transform: translateY(-2px);
}

.cookies-settings-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.38);
    outline-offset: 4px;
}


/* ========================================
   CONTATO
   ======================================== */

.cookies-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);
}

.cookies-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;
}

.cookies-contact-card > div,
.cookies-contact-card .btn {
    position: relative;
    z-index: 2;
}

.cookies-contact-card span,
.cookies-contact-card strong {
    display: block;
}

.cookies-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;
}

.cookies-contact-card strong {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.5;
}

.cookies-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) {
    .cookies-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }

    .cookies-navigation-inner {
        top: 90px;

        max-height: calc(100vh - 112px);
        padding: 20px;
    }

    .cookies-content {
        padding: 42px 38px;
    }
}


/* ========================================
   RESPONSIVO — TABLET
   ======================================== */

@media (max-width: 850px) {
    .cookies-hero {
        padding: 185px 0 85px;
    }

    .cookies-section {
        padding: 85px 0 100px;
    }

    .cookies-layout {
        grid-template-columns: 1fr;
    }

    .cookies-navigation {
        display: none;
    }

    .cookies-content {
        padding: 38px 30px;

        border-radius: 26px;
    }
}


/* ========================================
   RESPONSIVO — MOBILE
   ======================================== */

@media (max-width: 700px) {
    .cookie-category-grid {
        grid-template-columns: 1fr;
    }

    .cookies-preference-card,
    .cookies-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookies-preference-card .btn,
    .cookies-contact-card .btn {
        width: 100%;

        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .cookies-hero {
        padding: 165px 0 70px;
    }

    .breadcrumbs {
        margin-bottom: 24px;

        font-size: 0.72rem;
    }

    .cookies-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.1rem);
    }

    .cookies-hero > .container > p {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .cookies-section {
        padding: 68px 0 80px;
    }

    .cookies-content {
        padding: 30px 22px;

        border-radius: 22px;
    }

    .cookies-content section + section {
        margin-top: 36px;
        padding-top: 36px;
    }

    .cookies-content h2 {
        font-size: 2rem;
    }

    .cookies-content p {
        font-size: 0.92rem;
        line-height: 1.76;
    }

    .cookies-content li {
        padding-left: 22px;

        font-size: 0.9rem;
    }

    .cookies-notice {
        margin-bottom: 38px;
        padding: 22px;
    }

    .cookie-category-card {
        padding: 21px;
    }

    .cookies-warning,
    .cookies-editor-note {
        padding: 20px;
    }

    .cookies-preference-card,
    .cookies-contact-card {
        padding: 24px;
    }

    .cookies-table-wrapper {
        margin-right: -4px;
        margin-left: -4px;

        border-radius: 16px;
    }
}


/* ========================================
   ACESSIBILIDADE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cookies-navigation a,
    .cookies-settings-button {
        transition: none;
    }

    .cookies-settings-button:hover {
        transform: none;
    }
}