Entanglement and Magic in the Geometry of Entropy Inequalities