/* ============================================================
   AdSense Legal Pages — Seletor de idioma
   ============================================================ */

.alp-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 999px;
}

.alp-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.5rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.alp-switcher__btn:hover {
    background: #fff;
    color: #1a56db;
}

.alp-switcher__btn.is-active {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.alp-switcher__btn:focus-visible {
    outline: 2px solid #1a56db;
    outline-offset: 2px;
}

.alp-flag {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.alp-switcher__label {
    letter-spacing: 0.02em;
}

/* ---------- Variante compacta (só bandeira) ---------- */

.alp-switcher--compact .alp-switcher__label {
    display: none;
}

/* ---------- Variante no header do tema ---------- */

.lean-header .alp-switcher {
    margin-left: auto;
}

/* ---------- Responsivo ---------- */

@media (max-width: 640px) {
    .alp-switcher__label {
        display: none;
    }

    .alp-switcher__btn {
        padding: 0.375rem;
    }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
    .alp-switcher__btn {
        transition: none;
    }
}