/* =========================================================
   MAIN FOOTER – CSS Grid 3-column layout
   Uses CSS Grid so it ALWAYS renders 3 columns side-by-side
   regardless of sidebar width or Bootstrap breakpoints
   ========================================================= */

.main-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    color: rgba(255, 255, 255, 0.75);
    width: 100%;
    position: relative;
    margin-top: auto;
    box-sizing: border-box;
}

/* Inner wrapper */
.footer-inner {
    width: 100%;
    padding: 50px 4% 0;
    box-sizing: border-box;
}

/* === 3-column CSS Grid === */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
    min-width: 0;
}

/* ---- Logo ---- */
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo .main-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* ---- Social links ---- */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #8a42ff;
    border-color: #8a42ff;
    color: #fff;
    transform: translateY(-3px);
}

/* ---- Section headings ---- */
.footer-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #8a42ff;
    border-radius: 2px;
}

/* ---- Legal link list ---- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #8a42ff;
    padding-left: 5px;
}

/* ---- Contact list ---- */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact li i {
    color: #8a42ff;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Bottom section (disclaimer + copyright) ---- */
.footer-bottom {
    padding: 20px 0;
}

.platform-disclaimer {
    text-align: center;
    padding: 20px 20px 0;
    margin-bottom: 0;
}

.platform-disclaimer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    margin-bottom: 6px;
}

.platform-disclaimer .trademark-list {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.copyright {
    background: rgba(0, 0, 0, 0.25);
    padding: 18px 4%;
    margin-top: 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.copyright p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.copyright a:hover {
    color: #8a42ff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    /* 3rd column (contact) full width on tablet */
    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile: 1 column */
@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-col:last-child {
        grid-column: auto;
    }
    .footer-inner {
        padding: 30px 20px 0;
    }
}
