:root {
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --white: #ffffff;
}

/* Footer Container */
.footer {
    background-color: var(--white);
    color: var(--gray-800); /* text-black in original, but usually 800-900 */
    font-size: 1rem; /* text-base */
    padding: 3rem 1rem; /* py-12 px-4 */
    border-top: 1px solid var(--gray-200);
}

@media (min-width: 768px) { /* md: */
    .footer {
        font-size: 0.875rem; /* text-sm */
    }
}

.footer-container {
    max-width: 72rem; /* max-w-6xl */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

@media (min-width: 768px) { /* md: */
    .footer-container {
        align-items: center;
        text-align: center;
    }
}

/* Inner Content Wrapper */
.footer-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) { /* md: */
    .footer-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

/* Logo */
.footer-logo {
    margin-bottom: 2.5rem; /* mb-10 */
    cursor: pointer;
    filter: invert(1);
    width: 120px;
    height: auto;
}

@media (min-width: 768px) { /* md: */
    .footer-logo {
        margin-bottom: 0;
        margin-right: 5rem; /* mr-20 */
    }
}

/* Info Section (flex-1) */
.footer-info {
    flex: 1 1 0%;
}

/* Links & Text */
.footer-link {
    text-decoration: underline;
    color: inherit;
}

.footer-text span {
    display: inline-block;
}

/* Responsive Layouts */

/* Desktop (lg: hidden < lg) */
.layout-lg {
    display: none;
}
@media (min-width: 1024px) { /* lg: */
    .layout-lg {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .layout-lg .footer-items {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        column-gap: 1rem; /* gap-x-4 */
        row-gap: 0.25rem; /* gap-y-1 */
        width: 100%;
    }
}

/* Tablet (md: hidden < md, hidden >= lg) */
.layout-md {
    display: none;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .layout-md {
        display: block;
        text-align: left;
    }
    .layout-md .footer-links {
        display: flex;
        gap: 1rem; /* space-x-4 */
        margin-bottom: 0.5rem; /* mb-2 */
    }
    .layout-md .footer-items {
        display: flex;
        flex-wrap: wrap;
        column-gap: 1rem; /* gap-x-4 */
        row-gap: 0.25rem; /* gap-y-1 */
    }
}

/* Mobile (hidden >= md) */
.layout-sm {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .layout-sm {
        display: none;
    }
}

.layout-sm .footer-links {
    display: flex;
    gap: 1rem; /* space-x-4 */
    margin-bottom: 1rem; /* mb-4 */
}

.layout-sm .footer-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* gap-2 */
}
