Is there a legal minimum stop time between 2 legs?
Well, in some cases, zero.

In Australia, for a long time only two airlines (Ansett and TAA) were allowed to fly between capital cities. To work around this, East-West Airlines practiced a touch-and-go at Albury, half way between Melbourne and Sydney. Legally, these we considered separate legs (at least for some time).