/* Rodape publico: grid (marca + colunas) + barra legal inferior */

.app-site-main {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.app-site-footer {
    width: 100%;
    margin-top: auto; /* empurra rodape para o fim em layout flex-col */
    border-top: 1px solid var(--cs-border);
    background: var(--cs-surface-elevated);
    color: var(--cs-text);
}

.app-site-footer-inner {
    width: 100%;
    max-width: calc(88rem + 40px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem;
}

@media (min-width: 40rem) {
    .app-site-footer-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 64rem) {
    .app-site-footer-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Grid principal: 2 colunas (links), 4 em tablet, 6 em desktop com marca ocupando 2 */
.app-site-footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    padding: 3.25rem 0 2.5rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 40rem) {
    .app-site-footer-columns {
        max-width: 42rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem 1.75rem;
    }
}

@media (min-width: 64rem) {
    .app-site-footer-columns {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.5rem 2rem;
        padding-top: 3.5rem;
    }
}

.app-site-footer-columns__brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 64rem) {
    .app-site-footer-columns__brand {
        grid-column: span 2;
        text-align: left;
        margin-bottom: 0;
        padding-right: 1rem;
    }
}

.app-site-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--cs-text);
}

@media (min-width: 64rem) {
    .app-site-footer-logo {
        justify-content: flex-start;
    }
}

.app-site-footer-logo__img {
    display: block;
    max-width: 14rem;
    width: auto;
    height: auto;
    max-height: 3.15rem;
    object-fit: contain;
}

.app-site-footer-logo__text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.app-site-footer-logo:hover .app-site-footer-logo__text {
    opacity: 0.88;
}

.app-site-footer-tagline {
    margin: 1.75rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--cs-text-muted);
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 64rem) {
    .app-site-footer-tagline {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
}

.app-site-footer-social-row {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

@media (min-width: 64rem) {
    .app-site-footer-social-row {
        justify-content: flex-start;
    }
}

.app-site-footer-social-row__item {
    margin: 0;
    padding: 0;
}

.app-site-footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--cs-btn-primary-bg);
    color: var(--cs-btn-primary-text);
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.app-site-footer-social-btn:hover {
    background: var(--cs-btn-primary-hover, var(--cs-btn-primary-bg));
    opacity: 0.95;
}

.app-site-footer-social-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--cs-btn-primary-bg) 55%, var(--cs-text));
    outline-offset: 2px;
}

.app-site-footer-social-btn svg {
    width: 1rem;
    height: 1rem;
}

.app-site-footer-columns__nav {
    text-align: center;
}

@media (min-width: 40rem) {
    .app-site-footer-columns__nav {
        text-align: left;
    }
}

@media (min-width: 64rem) {
    .app-site-footer-columns__nav {
        margin-left: auto;
        margin-right: auto;
        max-width: 12rem;
    }
}

.app-site-footer-col-title {
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cs-text);
    letter-spacing: -0.01em;
}

.app-site-footer-col-subtitle {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cs-text-muted);
}

.app-site-footer-linklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-site-footer-linklist__item {
    margin: 0 0 0.9rem;
    padding: 0;
}

.app-site-footer-linklist__item:last-child {
    margin-bottom: 0;
}

.app-site-footer-link {
    display: inline;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--cs-text-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.app-site-footer-link:hover {
    color: var(--cs-text);
}

button.app-site-footer-link.app-site-footer-link--connect {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--cs-text-muted);
    text-align: left;
}

button.app-site-footer-link.app-site-footer-link--connect:hover {
    color: var(--cs-text);
}

.app-site-footer-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cs-btn-primary-bg);
}

/* Barra inferior */
.app-site-footer-bottom {
    border-top: 1px solid var(--cs-border);
    padding: 1.5rem 0 2rem;
}

.app-site-footer-bottom__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 64rem) {
    .app-site-footer-bottom__row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.app-site-footer-bottom__row--compliance {
    justify-content: center;
    text-align: center;
}

@media (min-width: 64rem) {
    .app-site-footer-bottom__row--compliance {
        justify-content: center;
        text-align: center;
    }
}

.app-site-footer-bottom__copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--cs-text-muted);
    line-height: 1.55;
    max-width: 52rem;
}

.app-site-footer-bottom__sep {
    margin: 0 0.4rem;
    color: color-mix(in srgb, var(--cs-text-muted) 65%, transparent);
}

.app-site-footer-bottom__inline-link {
    font-size: inherit;
    color: var(--cs-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.app-site-footer-bottom__inline-link:hover {
    color: var(--cs-text);
    text-decoration: underline;
}

.app-site-footer-bottom__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.75rem;
}

@media (min-width: 64rem) {
    .app-site-footer-bottom__legal {
        justify-content: flex-end;
    }
}

.app-site-footer-bottom__legal a {
    font-size: 0.8125rem;
    color: var(--cs-text-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.app-site-footer-bottom__legal a:hover {
    color: var(--cs-text);
}

.app-site-footer-bottom__rights {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--cs-text-muted);
}

@media (min-width: 64rem) {
    .app-site-footer-bottom__rights {
        text-align: left;
    }
}
