/* Site Footer (OpenAI Style) */
.site-footer {
    width: 100%;
    padding: 80px 0 40px;
    background-color: var(--color-bg-second);
    /* Secondary bg */
    color: var(--color-text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

/* Wrapper Layout */
.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* Space between rows */
}

/* --- Top Section --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.footer-logo-small .footer-icon-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-nav-cols {
    display: flex;
    gap: 120px;
    /* Space between columns */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-col-title {
    margin: 0;
    text-transform: none;
    /* Typography via .text-footer-heading */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links li a {
    transition: opacity 0.2s ease;
    /* Typography via .text-footer-link */
}

.footer-links li a:hover {
    opacity: 0.7;
}

/* --- Middle Section (Huge Title) --- */
.footer-center {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 80px;
    /* Space to line */
}

.footer-huge-title {
    font-size: 3vw;
    /* Slightly smaller than 16vw */
    line-height: 0.8;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 0;
    text-align: left;
    width: 100%;
    /* Gradient or Solid White? Image is solid black. We use solid white. */
    color: var(--color-text-primary);
}

/* --- Bottom Section --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.footer-legal-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-legal-left a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.footer-legal-left a:hover {
    color: var(--color-text-primary);
}

.footer-socials-right {
    display: flex;
    gap: 32px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social-icons a {
    color: inherit;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
}

.social-icons a:hover {
    color: var(--color-text-primary);
}

.footer-lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-lang-selector:hover {
    color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-nav-cols {
        gap: 64px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 64px 0 32px;
    }

    .footer-wrapper {
        gap: 48px;
    }

    /* Top Section Stacking */
    .footer-top {
        flex-direction: column;
        gap: 48px;
    }

    .footer-logo-small {
        margin-bottom: 0;
    }

    .footer-nav-cols {
        /* On mobile, columns often stack or 2-col grid */
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Center Section */
    .footer-huge-title {
        font-size: 0vw;
        /* Even bigger relative to width on mobile? Or controlled */
    }

    .footer-center {
        padding-bottom: 48px;
    }

    /* Bottom Section Stacking */
    .footer-bottom {
        flex-direction: column-reverse;
        /* Socials top, legal bottom */
        align-items: flex-start;
        gap: 32px;
    }

    .footer-socials-right {
        width: 100%;
        justify-content: space-between;
    }

    .footer-legal-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Footer Language Dropdown Styles */
.footer-lang-selector-wrapper {
    position: relative;
}

.footer-lang-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.footer-lang-selector-wrapper.active .footer-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}