Galois cohomology of reductive groups over global fields