Vortex lines in a cubic magnetic nanodot: structure and dynamics