/* Base Footer Style */
.apple-footer {
    background-color: #f5f5f7;
    padding: 60px 20px;
    border-top: 1px solid #d2d2d7;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 15px;
}

.footer-label {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    font-size: 12px;
    color: #424245;
    margin-bottom: 10px;
}

.footer-links a {
    color: #424245;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #000;
}

.footer-toggle {
    display: none; /* Hide checkboxes */
}

.copyright-text {
    font-size: 12px;
    color: #86868b;
    margin-top: 20px;
}

.mobile-only { display: none; }

/* --- MOBILE ACCORDION LOGIC --- */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 0;
    }

    .footer-col {
        border-bottom: 1px solid #d2d2d7;
        padding: 15px 0;
    }

    .logo-col { border-bottom: none; }

    .footer-label {
        margin-bottom: 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Add a "plus" icon that rotates */
    .footer-label::after {
        content: '+';
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease;
    }

    /* When checkbox is checked, show links */
    .footer-toggle:checked ~ .footer-links {
        max-height: 200px; /* Adjust based on content */
        padding-top: 15px;
    }

    /* Rotate the plus to an 'x' or rotate it */
    .footer-toggle:checked ~ .footer-label::after {
        transform: rotate(45deg);
    }

    .desktop-only { display: none; }
    .mobile-only { 
        display: block; 
        text-align: left;
        padding-top: 30px;
        border-top: none;
    }
}