Is there a legal minimum stop time between 2 legs? This question is restricted to airliners transporting many passengers (let's say more than 20).

Between two legs, airliners stay at the boarding gate for a limited time, sometimes less than an hour. The stopover duration at the gate is typically dictated by the time to refuel and disembark/embark both freight and passengers. I understand the cost-saving logic behind the decision to make this operation as fast as possible.

However, in a competitive market, safety may not be compatible with shorter turnaround times. No pilot would irresponsibly compromise safety by leaving the gate without fulfilling their safety and security obligations, but I wonder if there is a minimum turnaround time imposed by regulation to avoid downward pressure on turnaround times?

EDIT:


let's focus on the fastest and simplest scenario: no crew change and no refueling (the crew took enough fuel to make several legs)
I don't want to be restricted to one legislation or one part of the world. The question is: does any regulation exist to require such a stop time?
I just thought that technically, brakes should be cooled down before the next take off roll.
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).