/* ==================================================
   RODAPÉ ÚNICO DO SITE
   Este arquivo é a única fonte para o rodapé,
   voltar ao topo e interface de consentimento.
   ================================================== */
.atlas-mark--footer {
    width: 46px;
    height: 40px;
    color: #ffffff;
}

.atlas-mark--footer .atlas-mark-node {
    background: var(--color-primary);
}

.site-footer {
    padding: 72px 0 0;
    background: var(--color-primary);
    color: #ffffff;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
    gap: 48px;
}

.site-footer-identity {
    max-width: 360px;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2.8px;
    line-height: 1.2;
}

.site-footer-description {
    margin: 24px 0 0;
    color: #d9d5e2;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

.site-footer-link {
    display: inline-flex;
    min-height: 38px;
    padding: 0;
    align-items: center;
    border: 0;
    background: transparent;
    color: #e7e3ec;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
    color: #ffffff;
    text-decoration-color: currentColor;
}

.site-footer-bottom {
    display: flex;
    margin-top: 56px;
    padding: 24px 0 28px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-bottom p {
    margin: 0;
    color: #cbc7d5;
    font-family: var(--font-heading);
    font-size: 11px;
    line-height: 1.5;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: inline-flex;
    min-height: 46px;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-primary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(34, 37, 43, 0.18);
}

.back-to-top[hidden] {
    display: none;
}

/* Consentimento */
.consent-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2500;
    width: min(calc(100% - 40px), 960px);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 20px 60px rgba(34, 37, 43, 0.22);
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.consent-title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.consent-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.consent-button {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--color-primary);
    border-radius: 9px;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
}

.consent-button--primary {
    background: var(--color-primary);
    color: #ffffff;
}

.consent-dialog {
    width: min(calc(100% - 32px), 620px);
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    color: var(--color-text);
}

.consent-dialog::backdrop {
    background: rgba(34, 37, 43, 0.58);
}

.consent-dialog-content {
    padding: 28px;
}

.consent-options {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.consent-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.consent-option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.consent-option strong,
.consent-option span {
    display: block;
}

.consent-option span {
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1090px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 56px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer-identity {
        max-width: 520px;
    }

    .site-footer-bottom {
        margin-top: 44px;
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
    }

    .consent-banner-grid {
        grid-template-columns: 1fr;
    }

    .consent-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .back-to-top {
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
    }

    .back-to-top > span:first-child {
        display: inline-block;
        color: currentColor;
        font-size: 18px;
        line-height: 1;
    }

    .back-to-top > span:last-child {
        display: none;
    }

    .consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        padding: 18px;
    }

    .consent-actions,
    .consent-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        scroll-behavior: auto;
    }
}

@media print {
    .site-footer,
    .back-to-top,
    .consent-banner,
    .consent-dialog {
        display: none !important;
    }
}
