footer.contact {
    background-color: rgba(2, 32, 63, 0.85);
    color: #f1f1f1;
    padding: 15px 0;
}

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1500px;
    margin: 0 auto;
    gap: 60px;
    padding-left: 0;
}

.about-section {
    flex: 3 1 400px;
    text-align: left;
    margin-right: 60px;
}

.contact-section {
    flex: 1.5 1 300px;
    text-align: left;
}

h3 a {
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    transition: transform 0.3s ease;
}

.legal-section {
    flex: 0.7 1 200px;
    text-align: left;
}

.about-section h3,
.contact-section h3,
.legal-section h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 400;
    font-family: 'Caprasimo', serif;
}

.about-section p,
.contact-section p,
.legal-section p {
    margin: 10px 0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.legal-section p,
.contact-section p {
    line-height: 1.3;
    margin-bottom: 6px;
}

.legal-section a {
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    transition: transform 0.3s ease;
}

.legal-section p:hover {
    font-family: 'Poppins', sans-serif;
    transform: scale(1.05) translateX(10px);
    transition: transform 0.3s ease;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-icons {
    flex: 1;
    max-width: 300px;
    padding-right: 80px;
    transition: all 0.4s ease-in-out;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
    margin-bottom: 5px;
}

.contact-icons a {
    text-decoration: none;
    display: inline-block;
    margin-right: 25px;
    transition: transform 0.2s ease;
    padding: 1px 3px;
}

.contact-icons img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.contact-icons a:hover {
    transform: scale(1.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 240, 230, 0.3);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 240, 230, 0.7);
    margin: 0;
}

/* Medium screens - keep horizontal layout but adjust spacing */
@media (max-width: 1200px) and (min-width: 901px) {
    .contact-container {
        gap: 30px;
        padding: 0 20px;
        max-width: 100%;
    }

    .about-section {
        flex: 2 1 300px;
        margin-right: 20px;
    }

    .contact-section {
        flex: 1.2 1 250px;
    }

    .legal-section {
        flex: 0.8 1 180px;
    }

    .contact-icons {
        padding-right: 20px;
    }
}

/* Small screens - vertical layout */
@media (max-width: 900px) {
    footer.contact {
        padding: 40px 20px;
    }

    .contact-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 60px;
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
        text-align: left;
        width: 100%;
    }

    .about-section,
    .contact-section,
    .legal-section {
        flex: none;
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin-right: 0;
        padding: 0;
        margin-bottom: 30px;
    }

    .legal-section p,
    .contact-section p {
        margin: 0 !important;
    }

    .legal-section p,
    .contact-section p,
    .about-section p {
        margin-bottom: 5px !important;
    }

    .contact-icons {
        justify-content: flex-start !important;
        margin: 0;
        flex-wrap: wrap;
        padding-right: 0;
        padding-left: 0;
    }

    .about-section h3,
    .contact-section h3,
    .legal-section h3 {
        font-size: 1.2rem;
        padding-left: 0;
    }

    .about-section p,
    .contact-section p,
    .legal-section p {
        font-size: 16px !important;
        padding-left: 0;
        line-height: 1.5;
    }
}