/* Shared compact footer rows; desktop arranges the same content in two columns. */
#footer {
    --footer-row-height: 3.25rem;
    --footer-brand-offset: 0.3rem;
    padding: 1.5rem 0 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

#footer .footer-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
}

#footer .footer-main-row > [class*="col-"],
#footer .footer-meta-row > [class*="col-"] {
    width: 100%;
    min-width: 0;
    padding: 0;
}

#footer .footer-contacts > header,
#footer .footer-phones > h3,
#footer .footer-email h3 span,
#footer .footer-address h3 span {
    display: none;
}

#footer .footer-about {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#footer .footer-about > header { margin: calc(-1 * var(--footer-brand-offset)) 0 1rem; }
#footer .footer-about h2 { display: block; margin: 0; line-height: 1; }
#footer .footer-about h2::after { content: none; }
#footer .footer-wordmark {
    display: block;
    width: 14.4rem;
    max-width: 100%;
    height: auto;
}

#footer .footer-left { margin-top: auto; transform: translateY(-0.5rem); }

@media screen and (max-width: 736px) {
    #footer .footer-left { transform: none; }
}

#footer .company-description { font-size: 0.875rem; line-height: 1.55; }
#footer .company-description p { margin-bottom: 1rem; }

#footer .footer-left .actions,
#footer .footer-left .actions li {
    width: 100%;
    max-width: none;
    margin: 0;
}

#footer .footer-left .button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 0.65rem 1rem;
}

#footer .contact { display: flex; flex-direction: column; }
#footer .contact li {
    min-width: 0;
    min-height: var(--footer-row-height);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#footer .contact p,
#footer .contact h3 { margin: 0; }
#footer .contact a { border-bottom: 0; }

#footer .footer-phones { order: 1; display: flex; align-items: center; padding: 0; }
#footer .company-phones { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
#footer .company-phones p + p { border-left: 1px solid rgba(255, 255, 255, 0.2); }
#footer .company-phones a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    white-space: nowrap;
}
#footer .footer-mobile-icon { display: inline-block; color: var(--color-primary); font-size: 1.25rem; }

#footer .footer-email,
#footer .footer-address {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.45;
}
#footer .footer-email { order: 2; }
#footer .footer-address { order: 3; }
#footer .footer-email h3,
#footer .footer-address h3 { grid-column: 1; grid-row: 1; font-size: 1.25rem; }
#footer .footer-email p,
#footer .footer-address p { grid-column: 2; }
#footer .footer-email a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
#footer .footer-address a { display: flex; align-items: center; min-height: 44px; }
#footer .company-phones p + p a { padding-left: 0.5rem; }

#footer .footer-mobile-utilities { display: block; }
#footer .footer-mobile-utilities .footer-legal-more { display: none; }
#footer .footer-legal-disclosure,
#footer .footer-analytics { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
#footer .footer-legal-disclosure summary,
#footer .footer-analytics {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--footer-row-height);
    width: 100%;
    padding: 0.5rem 0;
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
#footer .footer-legal-disclosure summary {
    min-height: calc(var(--footer-row-height) - 1px);
    justify-content: space-between;
    list-style: none;
}
#footer .footer-legal-disclosure summary::-webkit-details-marker { display: none; }
#footer .footer-legal-disclosure summary > span { display: flex; align-items: center; gap: 0.75rem; }
#footer .footer-mobile-utilities i { flex: 0 0 24px; color: var(--color-primary); font-size: 1.25rem; }
#footer .footer-legal-disclosure[open] summary > .bi-chevron-down { transform: rotate(180deg); }
#footer .footer-documents { display: grid; padding-bottom: 0.5rem; }
#footer .footer-documents a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#footer .footer-analytics {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    background: none;
    text-align: left !important;
    text-decoration: none;
}
#footer a:focus-visible,
#footer summary:focus-visible,
#footer button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

#footer .footer-meta-row { margin: 0; }
#footer .copyright {
    margin-top: 1rem;
    padding-top: 0;
    border-top: 0;
    font-size: 0.75rem;
    line-height: 1.45;
}
#footer .copyright p { margin-bottom: 0.5rem; }
#footer .copyright .small { font-size: 0.75rem; }
#footer .copyright .footer-legal-links { display: none; }
#footer .social-section { margin-top: 1rem; padding: 1rem 0 0; }

#footer .company-description,
#footer .company-description p,
#footer .footer-left .button,
#footer .footer-email,
#footer .footer-address,
#footer .contact a,
#footer .contact p,
#footer .footer-legal-disclosure summary,
#footer .footer-analytics,
#footer .footer-documents a,
#footer .copyright,
#footer .copyright .small {
    font: inherit;
}

#footer .contact i,
#footer .footer-mobile-utilities i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex: 0 0 24px;
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1;
}

@media screen and (min-width: 737px) {
    #footer .footer-analytics { border-bottom: 0; }
    #footer .footer-legal-disclosure { position: relative; }
    #footer .footer-legal-disclosure summary { padding-right: 1rem; }
    #footer .footer-mobile-utilities .footer-legal-chevron { display: none; }
    #footer .footer-mobile-utilities .footer-legal-more { display: inline-flex; }

    #footer .footer-documents {
        position: absolute;
        right: 0;
        bottom: calc(100% + 0.5rem);
        z-index: 30;
        width: min(26rem, 100%);
        padding: 0.5rem;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.6);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    #footer .footer-documents a {
        padding: 0.65rem 0.75rem;
        border-radius: 6px;
        text-decoration: none;
    }

    #footer .footer-documents a:hover,
    #footer .footer-documents a:focus-visible {
        background: rgba(255, 255, 255, 0.08);
    }

    #footer {
        --footer-brand-offset: 0.75rem;
        padding: 2.5rem 0 1.25rem;
        font-size: 1rem;
    }

    #footer > .container {
        width: 95%;
        max-width: 1150px;
        padding-inline: 0;
    }

    #footer .company-description { font: inherit; line-height: 1.55; }
    #footer .footer-wordmark { width: 20.4rem; }
    #footer .footer-left .button { min-height: 52px; }
    #footer .company-phones a { font: inherit; gap: 0.75rem; }
    #footer .company-phones p + p a { padding-left: 0.75rem; }
    #footer .footer-address a { padding-block: 0.5rem; }

    #footer .copyright {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem 2rem;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.875rem;
        text-align: left;
    }

    #footer .copyright p { margin: 0; }
    #footer .copyright .small { margin-left: auto; text-align: right; }
    #footer .social-section { margin-top: 1.5rem; padding-top: 1rem; }
}

@media screen and (min-width: 981px) {
    #footer .footer-contacts {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #footer .footer-mobile-utilities { margin-top: auto; }

    #footer .footer-main-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem;
    }

    #footer .footer-main-row > [class*="col-"] + [class*="col-"] {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 2.5rem;
    }

    #footer .company-phones p + p a { padding-left: 1.25rem; }
}
