Non-axisymmetric local magnetostatic equilibrium