With a new law — and massive new detention camps — the country is undermining its status as a democracy.