footer {
    width: 100%;
    height: auto;
    min-height: 10%;
    padding: 1% 0 0.5% 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    position: relative;
    z-index: 1000;
}

footer span {
    font-size: 11px;
    margin-bottom: 10px;
    text-align: start;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

footer .legal-txt {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-right: 14%;
}

footer .legal-txt a {
    margin: 5px 15px;
}

footer .organized-col {
    height: 115px;
}

footer .doctaforum-logo {
    height: 90px;
}

footer .patro-col {
    height: 115px;
}

footer .legal-txt-col {
    height: 115px;
}

footer .logo-kyowa {
    width: 200px;
}

.privacy-content {
    padding: 2%;
}

.privacy-content h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-content .index-list {
    list-style: none;
    padding-left: 0;
}

.privacy-content .index-list li {
    margin-bottom: 0.25rem;
}

.privacy-content a {
    text-decoration: none;
    color: var(--secondary);
}

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content .emphasis {
    font-weight: bold;
}

.privacy-content .underline {
    text-decoration: underline;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

@media (max-width: 1600px) {
    footer .legal-txt {
        margin-right: 20%;
    }
}

@media (max-width: 1350px) {
    footer .legal-txt {
        margin-right: 24%;
    }
}

@media (max-width: 1350px) {
    footer a {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    /* Footer responsive enhancements */
    footer {
        flex-direction: column;
        padding: 20px 15px;
        text-align: center;
    }

    footer .col-2,
    footer .col-8 {
        width: 100%;
        margin-bottom: 30px;
    }

    footer .col-2 {
        height: auto;
    }

    footer .legal-txt {
        justify-content: center;
        margin-right: 0;
        width: 100%;
    }

    footer .organized-col {
        height: auto;
    }

    footer .patro-col {
        height: auto;
    }

    footer .legal-txt-col {
        height: auto;
    }

    /* footer img {
         width: 100px;
         margin: 5px auto;
     }*/
}

@media (max-width: 767px) {
    footer {
        padding: 15px 10px;
    }

    footer .legal-txt {
        flex-direction: column;
        align-items: center;
    }

    footer .legal-txt a {
        margin: 5px 0;
    }

    footer a {
        font-size: 12px;
        line-height: 1.5;
    }

    /* footer img {
         width: 80px;
     }*/
}

/* Especificaciones adicionales para dispositivos muy pequeños */
@media (max-width: 576px) {
    footer .d-grid {
        text-align: center;
        margin: 0 auto;
    }

    footer .col-2,
    footer .col-8 {
        padding: 15px 5px;
    }
}