.footer {
    background: var(--dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* margin-top: 4rem; */
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--light);
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.85rem;
}
.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover {
    color: var(--primary);
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    padding: 2rem 0 0;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}
.footer.no-margin {
    margin-top: 0;
}
.marketplace-footer {
    background: var(--dark);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.marketplace-footer .footer-content {
    margin-bottom: 0;
}
.marketplace-footer .footer-col h3 {
    color: var(--light);
}
.auth-footer {
    background: var(--dark);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}
.auth-footer .footer-content {
    max-width: 1850px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.auth-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.auth-footer .footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline;
    align-items: center;
}
.auth-footer .footer-links a:hover {
    color: var(--primary);
}
.auth-footer .copyright {
    text-align: right;
    padding: 0;
    border-top: none;
    margin-top: 0;
    font-size: 0.9rem;
}
#terms-modal.modal-overlay,
#privacy-modal.modal-overlay {
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.legal-modal {
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    color: var(--light);
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 108, 255, 0.3) transparent;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.legal-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.legal-modal-close:hover {
    opacity: 0.7;
}

.legal-modal-date {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal-modal h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.legal-modal p {
    margin-bottom: 0.75rem;
}

.legal-modal ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-modal ul li {
    margin-bottom: 0.4rem;
}

.legal-modal a {
    color: var(--primary);
    text-decoration: none;
}

.legal-modal a:hover {
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-Index:100;
}