/* WiseMail — rodapé e páginas legais; responsivo para desktop e mobile */

.wisemail-legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 5px;
    color: #7b8492;
    font-size: .73rem;
    line-height: 1.45;
}

.wisemail-legal-footer-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.wisemail-legal-footer a {
    color: #667085;
    text-decoration: none;
    transition: color .15s ease;
}

.wisemail-legal-footer a:hover,
.wisemail-legal-footer a[aria-current="page"] {
    color: #1769d2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wisemail-legal-footer-credit strong {
    color: #5f6877;
    font-weight: 600;
}

.wisemail-app-footer {
    box-sizing: border-box;
    width: 100%;
    margin-top: 8px;
    padding: 7px 2px 2px;
    border-top: 1px solid #e9edf2;
}

.wisemail-login-footer {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: center;
    padding: 9px 18px;
    border-top: 1px solid rgba(218, 224, 232, .7);
    background: rgba(244, 247, 251, .94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wisemail-legal-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
}

.wisemail-legal-header {
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #e4e8ee;
}

.wisemail-legal-header-inner {
    width: min(1120px, calc(100% - 48px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wisemail-legal-brand {
    display: inline-flex;
    align-items: center;
}

.wisemail-legal-brand img {
    display: block;
    width: auto;
    height: 35px;
    max-width: 190px;
    object-fit: contain;
}

.wisemail-legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #586477;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.wisemail-legal-back:hover {
    color: #1769d2;
}

.wisemail-legal-shell {
    box-sizing: border-box;
    flex: 1 0 auto;
    width: min(920px, calc(100% - 48px));
    margin: 26px auto 0;
}

.wisemail-legal-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px 2px;
    color: #9aa2af;
    font-size: .82rem;
}

.wisemail-legal-switcher a {
    color: #667085;
    text-decoration: none;
}

.wisemail-legal-switcher a:hover,
.wisemail-legal-switcher a[aria-current="page"] {
    color: #1769d2;
    font-weight: 600;
}

.wisemail-legal-document {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.wisemail-legal-document-header {
    padding: 32px 40px 25px;
    border-bottom: 1px solid #e9edf2;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.wisemail-legal-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #1769d2;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.wisemail-legal-eyebrow span {
    padding: 0 4px;
    color: #a1a9b5;
}

.wisemail-legal-document h1 {
    margin: 0 0 9px;
    color: #202a39;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.wisemail-legal-lead {
    max-width: 680px;
    margin: 0;
    color: #5f6b7b;
    font-size: 1rem;
    line-height: 1.6;
}

.wisemail-legal-updated {
    margin: 16px 0 0;
    color: #87909d;
    font-size: .76rem;
}

.wisemail-legal-document-body {
    padding: 29px 40px 40px;
    color: #465161;
    font-size: .93rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.wisemail-legal-document-body section + section {
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid #edf0f4;
}

.wisemail-legal-document-body h2 {
    margin: 0 0 10px;
    color: #263244;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

.wisemail-legal-document-body p {
    margin: 0 0 12px;
}

.wisemail-legal-document-body p:last-child {
    margin-bottom: 0;
}

.wisemail-legal-document-body ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.wisemail-legal-document-body li {
    padding-left: 3px;
    margin: 4px 0;
}

.wisemail-legal-document-body strong {
    color: #344054;
    font-weight: 700;
}

.wisemail-legal-footer-standalone {
    box-sizing: border-box;
    width: min(920px, calc(100% - 48px));
    margin: 18px auto 15px;
    padding: 12px 2px 4px;
    border-top: 1px solid #e1e7ef;
}

@media (min-width: 768px) {
    .wisemail-app-footer {
        font-size: .72rem;
    }

    .wisemail-legal-document-body {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .wisemail-app-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 5px;
        margin-top: 12px;
        padding: 9px 4px 13px;
    }

    .wisemail-login-footer {
        flex-direction: column;
        gap: 4px;
        padding: 7px 12px;
        font-size: .7rem;
    }

    .wisemail-legal-header-inner {
        width: calc(100% - 28px);
        min-height: 56px;
        gap: 10px;
    }

    .wisemail-legal-brand img {
        height: 30px;
        max-width: 145px;
    }

    .wisemail-legal-back {
        gap: 5px;
        font-size: .78rem;
        white-space: nowrap;
    }

    .wisemail-legal-shell {
        width: calc(100% - 24px);
        margin-top: 15px;
    }

    .wisemail-legal-switcher {
        margin-left: 4px;
        gap: 8px;
        font-size: .78rem;
    }

    .wisemail-legal-document {
        border-radius: 12px;
    }

    .wisemail-legal-document-header {
        padding: 23px 19px 20px;
    }

    .wisemail-legal-document h1 {
        font-size: 1.55rem;
        letter-spacing: -.025em;
    }

    .wisemail-legal-lead {
        font-size: .91rem;
    }

    .wisemail-legal-document-body {
        padding: 20px 19px 26px;
        font-size: .88rem;
        line-height: 1.7;
    }

    .wisemail-legal-document-body section + section {
        margin-top: 23px;
        padding-top: 19px;
    }

    .wisemail-legal-document-body h2 {
        font-size: .99rem;
    }

    .wisemail-legal-footer-standalone {
        width: calc(100% - 24px);
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 5px;
        margin-top: 14px;
        margin-bottom: 12px;
        padding: 12px 4px 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wisemail-legal-footer a {
        transition: none;
    }
}

/* WiseMail — rodapé fixo e centralizado no desktop */
.wisemail-legal-footer-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.wisemail-legal-footer-credit::before {
    content: "W";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1769d2 0 38%, #e5484d 38% 56%, #f5a623 56% 76%, #168451 76% 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .16);
}

.wisemail-legal-footer-credit strong {
    color: #344054;
    font-weight: 700;
    letter-spacing: -.01em;
}

.wisemail-legal-footer-standalone {
    justify-content: center;
    gap: 14px;
    text-align: center;
}

@media (min-width: 768px) {
    .wisemail-layout > main.wisemail-content .wisemail-app-footer {
        position: fixed;
        z-index: 15;
        left: 300px;
        right: 48px;
        bottom: 0;
        width: auto;
        min-height: 30px;
        margin: 0;
        padding: 5px 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 14px;
        text-align: center;
        border-top: 1px solid #e9edf2;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -2px 8px rgba(15, 23, 42, .035);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .wisemail-layout.sidebar-collapsed > main.wisemail-content .wisemail-app-footer {
        left: 76px;
    }

    .wisemail-legal-footer-standalone {
        flex-direction: row;
    }
}

@media (max-width: 767.98px) {
    .wisemail-app-footer,
    .wisemail-legal-footer-standalone {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}


/* WiseMail — rodapé cinza e crédito H3Sys */
.wisemail-legal-footer-credit::before {
    content: none !important;
    display: none !important;
}

.wisemail-legal-footer-credit {
    gap: 0 !important;
}

.wisemail-legal-footer-credit a {
    color: #344054;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
}

.wisemail-legal-footer-credit a:hover {
    color: #1769d2;
    text-decoration: underline;
}

.wisemail-layout > main.wisemail-content .wisemail-app-footer {
    background: #f1f3f5 !important;
}
