“Do you mind …” has been mis-answered for so long that yes means no. It’s hard to explain because written down, yes/no have different meanings, but when speaking to someone it depends on tone, context, and body language.
“Do you mind if I take that seat”
“No” “Yeah” depending on tone can both mean, “I’m fine with you taking that seat”. Most people will add on to make the intention clearer like, “Yeah, go ahead” but not always. Absolutely crazy.