The control window doesn´t change on some apps

First of all, I’m sorry if I don’t explain this well—I’m new here. My problem is that I was customizing my GNOME environment, changing the shell theme, icons, and legacy applications theme. That’s when I noticed that the window control bar changed for legacy applications.

I selected the theme I wanted, and it applied to some apps, but most of them didn’t change. I tried restarting GNOME Shell using gnome-shell --replace, but nothing changed.

Here are some pictures of the issue:

Most likely there’s a custom gtk.css file in ~/.config/gtk-3.0/ and/or /.config/gtk-4.0/ overriding the theme changes.

I found the files but what I need to change? there is the content of them

UPDATE

I already replace the files for the them that I wanted but it didn’t change

gtk.css of gtk-3.0:

@define-color accent_blue #3584e4;
@define-color accent_teal #2190a4;
@define-color accent_green #3a944a;
@define-color accent_yellow #c88800;
@define-color accent_orange #ed5b00;
@define-color accent_red #e62d42;
@define-color accent_pink #d56199;
@define-color accent_purple #9141ac;
@define-color accent_slate #6f8396;
@define-color accent_maia #16a085;
@define-color accent_bg_color @accent_maia;
@define-color accent_color @accent_bg_color;

gtk.css of gtk-4.0:

:root {
  --accent-color: var(--accent-bg-color);
  --accent-bg-color: var(--accent-maia);
}