/* Páginas legais — Serviços, Privacidade, Termos (leitura e contraste) */

html {
    color-scheme: dark;
}

body.fu-page-legal,
body.fu-page-servicos {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #dce8e0 !important;
    background-color: #030504 !important;
    background-image:
        radial-gradient(ellipse 100% 55% at 50% -8%, rgba(57, 255, 131, 0.14), transparent 52%),
        linear-gradient(180deg, #050a07 0%, #030504 55%, #020302 100%) !important;
    -webkit-font-smoothing: antialiased;
}

body.fu-page-legal a:not(.fu-legal-nav__item):not(.fu-legal-back):not(.fu-cta-row):not(.fu-legal-topbar-home):not(.fu-legal-topbar-link),
body.fu-page-servicos a:not(.fu-legal-nav__item):not(.fu-legal-back):not(.fu-cta-row):not(.fu-legal-topbar-home):not(.fu-legal-topbar-link) {
    color: #5cff9a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.fu-page-legal a:not(.fu-legal-nav__item):not(.fu-legal-back):not(.fu-cta-row):hover,
body.fu-page-servicos a:not(.fu-legal-nav__item):not(.fu-legal-back):not(.fu-cta-row):hover {
    color: #8affb8;
}

/* Barra superior */
.fu-legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px 0;
    position: relative;
    z-index: 10;
}

.fu-legal-topbar-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #e8fff0 !important;
    min-width: 0;
}

.fu-legal-topbar-home:hover {
    color: #fff !important;
}

.fu-legal-topbar-home .fu-legal-top-logo,
.fu-legal-topbar-home .fu-brand-frame {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.fu-legal-topbar-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fu-legal-topbar-link {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #041109 !important;
    background: linear-gradient(180deg, #39ff83, #22c55e);
    border: 1px solid rgba(57, 255, 131, 0.4);
    box-shadow: 0 4px 14px rgba(57, 255, 131, 0.2);
}

.fu-legal-topbar-link:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Conteúdo */
body.fu-page-servicos .wrap-legal,
body.fu-page-legal .wrap-legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    position: relative;
    z-index: 5;
}

.fu-legal-hero {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(57, 255, 131, 0.18);
}

.fu-legal-hero .fu-legal-logo {
    margin: 0 auto 14px;
}

body.fu-page-servicos h1,
body.fu-page-legal h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 4.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: #f3fff8 !important;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.fu-legal-lead {
    margin: 0 auto;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.65;
    color: #9eb8a8 !important;
    font-weight: 500;
}

.fu-legal-panel {
    padding: 22px 20px;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 1px solid rgba(57, 255, 131, 0.2);
    background: rgba(8, 16, 12, 0.92);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.fu-legal-panel p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #c5d9cc !important;
}

.fu-legal-panel p:last-child {
    margin-bottom: 0;
}

.fu-legal-panel p strong {
    color: #e8fff0 !important;
    font-weight: 700;
}

body.fu-page-legal ul {
    margin: 12px 0 16px;
    padding-left: 1.35rem;
    color: #c5d9cc !important;
}

body.fu-page-legal li {
    margin-bottom: 10px;
    line-height: 1.65;
}

body.fu-page-legal li::marker {
    color: #39ff83;
}

/* Serviços */
.fu-servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.fu-servico-card {
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(57, 255, 131, 0.18);
    background: rgba(8, 16, 12, 0.88);
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fu-servico-card:hover {
    border-color: rgba(57, 255, 131, 0.38);
    transform: translateY(-2px);
}

.fu-servico-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #e8fff0 !important;
}

.fu-servico-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #9eb8a8 !important;
}

.fu-servicos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 24px;
}

.fu-cta-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #e8fff0 !important;
    border: 1px solid rgba(57, 255, 131, 0.35);
    background: rgba(57, 255, 131, 0.1);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.fu-cta-row:hover {
    color: #fff !important;
    border-color: rgba(57, 255, 131, 0.55);
    background: rgba(57, 255, 131, 0.18);
    transform: translateY(-1px);
}

/* Navegação rodapé */
.fu-legal-foot {
    margin-top: 8px;
    padding-top: 8px;
    text-align: center;
}

.fu-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(57, 255, 131, 0.16);
    background: rgba(4, 10, 7, 0.85);
}

.fu-legal-nav--page .fu-legal-nav__item,
.fu-legal-nav .fu-legal-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #b8e8c8 !important;
    border: 1px solid rgba(57, 255, 131, 0.22);
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

a.fu-legal-nav__item:hover {
    color: #e8fff0 !important;
    border-color: rgba(57, 255, 131, 0.45);
    background: rgba(57, 255, 131, 0.12);
}

.fu-legal-nav__item--ativo {
    color: #041109 !important;
    border-color: rgba(57, 255, 131, 0.55) !important;
    background: linear-gradient(180deg, #39ff83, #22c55e) !important;
    box-shadow: 0 4px 16px rgba(57, 255, 131, 0.25);
}

.fu-legal-sep {
    display: none;
}

.fu-legal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #041109 !important;
    background: linear-gradient(180deg, #39ff83, #22c55e);
    border: 1px solid rgba(57, 255, 131, 0.45);
    box-shadow: 0 8px 24px rgba(57, 255, 131, 0.22);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.fu-legal-back:hover {
    color: #041109 !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(57, 255, 131, 0.3);
}

.fu-legal-back::before {
    content: "←";
    font-weight: 800;
}

@media (max-width: 480px) {
    .fu-legal-topbar {
        padding: 12px 14px 0;
    }

    .fu-legal-topbar-title {
        font-size: 0.75rem;
        max-width: 140px;
    }

    body.fu-page-servicos .wrap-legal,
    body.fu-page-legal .wrap-legal {
        padding: 20px 14px 40px;
    }

    .fu-legal-nav {
        gap: 6px;
        padding: 10px 8px;
    }

    .fu-legal-nav .fu-legal-nav__item {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 0.72rem;
    }
}
