Dark matter doesn't participate in the electromagnetic interaction, so it doesn't interact with light.
Everything interacts with gravity because it's the curvature of space.
It's kind of the other way around: what we experience as gravity is the effect stress-energy has on time (and space, a little bit). Massive objects curve your future toward themselves.