Dumb question: is this legal ?
How is that a smart question? You very likely can’t name the "politicians who made this illegal" because haring others’ intellectual property without permission has been illegal by definition since the beginning of intellectual property.
The next question is why the courts would say that Anna’s archive is illegal, but Google is not.
There are some tests around encouraging copyright infringement, and Google is very careful to pass those tests despite providing extremely similar services over similarly-illegal sites.
The mental and legal gymnastics required for all this are fascinating. I suggest studying internet IP law.
That's similar one of Google's goals, and they do it (mostly) legally.