/* =====================================================
   Sea Width AI Labs — Footer Styles
   Based on universal Sea Width footer design,
   adapted for seawidth.ai dark/tech theme.
   ===================================================== */

/* ---- Footer Shell ---- */
.sw-ai-footer {
    background: #121828;
    color: rgba(255, 255, 255, 0.65);
    border-top: 2px solid rgba(74, 158, 255, 0.3);
    padding: 4rem 1.5rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    box-sizing: border-box;
}

.sw-ai-footer *, .sw-ai-footer *::before, .sw-ai-footer *::after {
    box-sizing: border-box;
}

.sw-ai-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Footer Grid ---- */
.sw-ai-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ---- Brand Column ---- */
.sw-ai-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.sw-ai-footer-logo svg {
    flex-shrink: 0;
}

.sw-ai-footer-description {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.7;
}

.sw-ai-footer-tagline {
    margin-bottom: 1.5rem;
    color: rgba(74, 158, 255, 0.85);
    font-size: 0.82rem;
    font-style: italic;
}

/* ---- Social Links ---- */
.sw-ai-social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-ai-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sw-ai-social-links a:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.6);
    color: #4A9EFF;
}

/* ---- Link Columns ---- */
.sw-ai-footer-section h4 {
    color: #ffffff;
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sw-ai-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-ai-footer-nav li {
    margin-bottom: 0.5rem;
}

.sw-ai-footer-nav a,
.sw-ai-footer-nav button {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: inline;
}

.sw-ai-footer-nav a:hover,
.sw-ai-footer-nav button:hover {
    color: #4A9EFF;
}

/* ---- Footer Bottom Bar ---- */
.sw-ai-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sw-ai-footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Legal Modals ---- */
.sw-ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: swai-fadeIn 0.3s ease;
    touch-action: manipulation;
}

.sw-ai-modal.active {
    display: flex;
}

@keyframes swai-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sw-ai-modal-content {
    background: #1a1f3a;
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 12px;
    padding: 3rem;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: swai-slideUp 0.3s ease;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.7;
}

@keyframes swai-slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sw-ai-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.sw-ai-modal-close:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.4);
    color: #4A9EFF;
}

.sw-ai-modal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.sw-ai-modal-content h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #4A9EFF;
    margin: 1.5rem 0 0.5rem;
}

.sw-ai-modal-content p {
    margin: 0 0 1rem;
}

.sw-ai-modal-content ul {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.sw-ai-modal-content li {
    margin-bottom: 0.4rem;
}

.sw-ai-modal-updated {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.5rem !important;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sw-ai-footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .sw-ai-footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .sw-ai-footer {
        padding: 3rem 1.5rem 1.5rem;
        font-size: 0.9rem;
    }
    .sw-ai-footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .sw-ai-footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    .sw-ai-footer-logo {
        justify-content: center;
    }
    .sw-ai-social-links {
        justify-content: center;
    }
    .sw-ai-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .sw-ai-modal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .sw-ai-footer {
        padding: 2.5rem 1rem 1.5rem;
    }
    .sw-ai-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sw-ai-footer-section:first-child {
        grid-column: 1;
        text-align: center;
    }
    .sw-ai-footer-section {
        text-align: center;
    }
    .sw-ai-footer-logo {
        justify-content: center;
    }
    .sw-ai-footer-nav a,
    .sw-ai-footer-nav button {
        font-size: 0.85rem;
    }
    .sw-ai-modal-content {
        padding: 1.5rem 1rem;
    }
    .sw-ai-modal-content h2 {
        font-size: 1.2rem;
        padding-right: 2.5rem;
    }
}
