/* BIOHACKING 360 LABS — MARCA OFICIAL V1 */

.official-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.official-brand img {
    display: block;
    width: min(270px, 27vw);
    max-height: 62px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.header-inner {
    gap: 22px;
}

.modal {
    max-width: 560px;
    padding: 38px 42px;
    border: 1px solid #e5ebf3;
    border-radius: 22px;
    background: #fff;
}

.modal-official-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.modal-official-logo img {
    display: block;
    width: min(100%, 295px);
    max-height: 106px;
    height: auto;
    object-fit: contain;
}

.modal h2 {
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.2;
    letter-spacing: -.035em;
    margin: 0 0 16px;
}

.modal p {
    font-size: 14px;
    line-height: 1.75;
}

.modal .check {
    font-size: 13px;
    line-height: 1.6;
    margin: 16px 0;
}

.modal-buttons {
    margin-top: 22px;
}

.modal-buttons .btn {
    min-height: 50px;
    padding: 12px 18px;
    font-size: 13px;
}

.footer-official-logo {
    display: block;
    width: 210px;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
    background: white;
    border-radius: 7px;
    padding: 7px;
}

.language-switch {
    position: relative;
    flex-shrink: 0;
}

.language-switch summary {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
    border: 1px solid #d9e5f4;
    border-radius: 999px;
    background: #f6f9fd;
    color: #183659;
    font-size: 12px;
    font-weight: 750;
    padding: 10px 13px;
    user-select: none;
}

.language-switch summary::-webkit-details-marker {
    display: none;
}

.language-switch summary::after {
    content: "⌄";
    font-size: 15px;
    line-height: 1;
    color: #456b9e;
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    z-index: 35;
    min-width: 148px;
    padding: 6px;
    border: 1px solid #dae5f3;
    border-radius: 13px;
    background: white;
    box-shadow: 0 16px 40px #142d501c;
}

.language-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #243e60;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
    background: #edf5ff;
    color: #1653b3;
}

@media (max-width: 1100px) {
    .official-brand img {
        width: min(220px, 25vw);
    }
}

@media (max-width: 640px) {
    .header-inner {
        gap: 9px;
    }

    .official-brand {
        min-width: 0;
        flex: 1;
    }

    .official-brand img {
        width: min(100%, 170px);
        max-height: 46px;
    }

    .language-switch summary {
        padding: 9px 10px;
        font-size: 11px;
    }

    .modal {
        padding: 27px 23px;
        max-height: 92dvh;
        overflow-y: auto;
    }

    .modal-official-logo img {
        max-height: 85px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}
