
/* ===============================
   PREMIUM RESPONSIVE SITE FOOTER
================================ */

.site-footer {
    padding: 34px 0 26px;
    background:
            radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 34%),
            var(--bg);
    border-top: 1px solid var(--navbar-border);
}

.site-footer-card {
    padding: 26px 28px;
    border-radius: 28px;
    background:
            radial-gradient(circle at top right, rgba(56,189,248,0.14), transparent 36%),
            var(--card);
    border: 1px solid var(--navbar-border);
    box-shadow: 0 16px 40px rgba(15,23,42,0.10);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.site-footer-logo {
    width: 72px;
    height: auto;
}

.footer-brand-row h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.footer-brand-row h3 span {
    color: var(--primary) !important;
}

.footer-brand-row p {
    margin: 4px 0 0;
    opacity: 0.72;
    font-weight: 600;
}

.site-footer-links {
    margin: 22px 0 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-links a,
.site-footer-bottom a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--text) !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.12);
}

.site-footer-links a:hover,
.site-footer-bottom a:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--navbar-border);
    font-size: 0.88rem;
}

.site-footer-bottom span {
    opacity: 0.78;
    font-weight: 700;
}

.site-footer-bottom div {
    display: flex;
    gap: 8px;
}

/* LIGHT MODE */
body.light .site-footer-card {
    background: #ffffff;
    border-color: rgba(2,132,199,0.14);
    box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

/* MOBILE */
@media (max-width: 768px) {
    .site-footer {
        padding: 24px 10px 22px;
    }

    .site-footer-card {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .footer-brand-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .site-footer-logo {
        width: 88px;
    }

    .footer-brand-row h3 {
        font-size: 1.25rem;
    }

    .footer-brand-row p {
        font-size: 0.92rem;
    }

    .site-footer-links {
        margin: 18px 0 14px;
        gap: 8px;
    }

    .site-footer-links a {
        font-size: 0.78rem;
        padding: 7px 10px;
    }

    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        font-size: 0.78rem;
    }

    .site-footer-bottom div {
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .site-footer-logo {
        width: 76px;
    }

    .site-footer-links a,
    .site-footer-bottom a {
        font-size: 0.74rem;
        padding: 6px 9px;
    }
}



/* ===============================
   LEGAL PAGES - PRIVACY / TERMS
================================ */

.legal-page {
    background:
            radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 34%),
            var(--bg);
}

.legal-hero {
    padding: 34px 0 18px;
    text-align: center;
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: 12px 0;
}

.legal-hero p {
    max-width: 820px;
    margin: 8px auto 0;
    opacity: 0.78;
    line-height: 1.7;
}

.legal-updated {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary) !important;
}

.legal-section {
    padding: 18px 0 50px;
}

.legal-card {
    max-width: 980px;
    margin: auto;
    padding: 34px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--navbar-border);
    box-shadow: 0 18px 45px rgba(15,23,42,0.10);
}

.legal-card h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary) !important;
}

.legal-card p,
.legal-card li {
    line-height: 1.8;
    opacity: 0.9;
}

.legal-card ul {
    padding-left: 22px;
}

.legal-card a {
    color: var(--primary) !important;
    font-weight: 800;
}

body.light .legal-card {
    background: #ffffff !important;
    border-color: rgba(2,132,199,0.14);
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 24px 12px 12px;
    }

    .legal-hero h1 {
        font-size: 1.9rem;
    }

    .legal-card {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .legal-card h2 {
        font-size: 1.15rem;
    }

    .legal-card p,
    .legal-card li {
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {

    footer {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    footer .footer-logo {
        width: 52px !important;
    }

    footer h4 {
        font-size: 1rem !important;
    }

    footer p {
        font-size: 0.78rem !important;
    }

    footer .footer-links a {
        font-size: 0.76rem !important;
    }
}
/* ======================================
   FINAL MOBILE FOOTER COMPACT FIX
====================================== */

@media (max-width: 768px) {

    .site-footer {
        padding: 14px 8px 12px !important;
    }

    .site-footer-card {
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }

    .footer-brand-row {
        gap: 6px !important;
    }

    .site-footer-logo {
        width: 58px !important;
    }

    .footer-brand-row h3 {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .footer-brand-row p {
        font-size: 0.78rem !important;
        margin-top: 2px !important;
    }

    .site-footer-links {
        margin: 12px 0 10px !important;
        gap: 6px !important;
    }

    .site-footer-links a,
    .site-footer-bottom a {

        padding: 6px 10px !important;

        font-size: 0.72rem !important;

        border-radius: 999px !important;
    }

    .site-footer-bottom {

        padding-top: 10px !important;

        gap: 8px !important;

        font-size: 0.72rem !important;
    }

    .site-footer-bottom span {
        font-size: 0.72rem !important;
    }
}

/* EXTRA SMALL MOBILE */

@media (max-width: 420px) {

    .site-footer-card {
        padding: 14px 10px !important;
    }

    .site-footer-logo {
        width: 52px !important;
    }

    .footer-brand-row h3 {
        font-size: 0.92rem !important;
    }

    .footer-brand-row p {
        font-size: 0.72rem !important;
    }

    .site-footer-links a,
    .site-footer-bottom a {

        font-size: 0.68rem !important;

        padding: 5px 8px !important;
    }
}
/* ======================================
   ULTRA COMPACT MOBILE FOOTER
====================================== */

@media (max-width: 768px) {

    .site-footer {
        padding: 8px 6px 6px !important;
    }

    .site-footer-card {

        padding: 10px 8px !important;

        border-radius: 14px !important;
    }

    .footer-brand-row {

        gap: 4px !important;
    }

    .site-footer-logo {

        width: 42px !important;
    }

    .footer-brand-row h3 {

        font-size: 0.82rem !important;

        margin: 0 !important;

        line-height: 1.05 !important;
    }

    .footer-brand-row p {

        font-size: 0.64rem !important;

        margin: 0 !important;

        opacity: 0.7;
    }

    .site-footer-links {

        margin: 8px 0 6px !important;

        gap: 4px !important;
    }

    .site-footer-links a,
    .site-footer-bottom a {

        padding: 4px 7px !important;

        font-size: 0.62rem !important;

        border-radius: 999px !important;

        font-weight: 700 !important;
    }

    .site-footer-bottom {

        padding-top: 6px !important;

        gap: 4px !important;

        font-size: 0.62rem !important;

        border-top-width: 1px !important;
    }

    .site-footer-bottom span {

        font-size: 0.62rem !important;
    }

    .site-footer-bottom div {

        gap: 4px !important;
    }
}

/* VERY SMALL DEVICES */

@media (max-width: 420px) {

    .site-footer-logo {
        width: 38px !important;
    }

    .footer-brand-row h3 {
        font-size: 0.76rem !important;
    }

    .footer-brand-row p {
        font-size: 0.58rem !important;
    }

    .site-footer-links a,
    .site-footer-bottom a {

        font-size: 0.58rem !important;

        padding: 4px 6px !important;
    }
}