/* ==========================================================================
   Kivembasoft — rodapé do WHMCS (tema Twenty-One), igual ao do site
   ========================================================================== */

#footer.ks-footer {
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(180deg, #1857a1 0%, #134b8c 18%, #0b3a6c 45%, #052a4b 71%, #03203a 92%, #03203a 100%);
    color: #fff;
    font-family: var(--ks-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: 13.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.ks-footer *,
.ks-footer *::before,
.ks-footer *::after { box-sizing: border-box; }
.ks-footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.ks-footer a:hover { color: #1cf7e9; text-decoration: none; }
.ks-footer p { margin: 0; }

.ks-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Colunas ---------- */
.ks-footer__top {
    display: grid;
    grid-template-columns: 510fr 270fr 270fr 240fr;
    padding: 30px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}
.ks-footer__about-col { padding-right: 56px; }

.ks-footer__logo img {
    display: block;
    height: 52px;
    width: auto;
    margin-bottom: 18px;
}
.ks-footer__about { line-height: 1.6; }

.ks-footer__title {
    margin: 6px 0 30px;
    color: #1cf7e9;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.ks-footer__about-col .ks-footer__title { margin: 22px 0 16px; }
.ks-footer__col .ks-footer__title + .ks-footer__list + .ks-footer__title { margin-top: 30px; }

.ks-footer__contact p + p { margin-top: 21px; }

.ks-footer__follow {
    margin: 26px 0 12px;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.ks-footer__social { display: flex; gap: 11px; }
.ks-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #e7e7e7;
    color: #0b3a6c;
    transition: background-color .2s ease, transform .2s ease;
}
.ks-footer__social a:hover { background: #1cf7e9; color: #03203a; transform: translateY(-2px); }
.ks-footer__social svg { width: 14px; height: 14px; display: block; }

/* Listas: título a negrito + linha de descrição */
.ks-footer__list { margin: 0; padding: 0; list-style: none; }
.ks-footer__list li { margin-bottom: 11px; }
.ks-footer__list strong,
.ks-footer__list span { display: block; line-height: 21px; }
.ks-footer__list strong { font-weight: 700; }
.ks-footer__list a:hover strong { color: #1cf7e9; }
.ks-footer__list a:hover span { color: #fff; }

/* ---------- Linha de baixo ---------- */
.ks-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: 12.5px;
    line-height: 16px;
}
.ks-footer__legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.ks-footer__legal span { margin: 0 4px; }
.ks-footer__lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}
.ks-footer__lang:hover { border-color: #1cf7e9; color: #1cf7e9; }

/* ---------- Tablet e telemóvel ---------- */
@media (max-width: 991.98px) {
    .ks-footer__top { grid-template-columns: 1fr 1fr; row-gap: 36px; column-gap: 32px; }
    .ks-footer__about-col { grid-column: 1 / -1; padding-right: 0; max-width: 560px; }
    .ks-footer__title { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
    .ks-footer__top { grid-template-columns: 1fr; }
    .ks-footer__bottom { flex-direction: column; align-items: flex-start; }
    .ks-footer__legal { justify-content: flex-start; }
}
