Drain pipe slope: The 1/4-inch per foot rule#
Horizontal drain pipes (1.5" to 3" diameter) must maintain a precise gravity slope of 1/4 inch of vertical drop per 1 foot of horizontal run. Too flat, and waste water stalls; too steep, and liquids outrun solid waste, causing clogs.

Why S-traps are illegal in modern plumbing codes#
Old S-traps loop downward into the floor without a vent pipe. When a sink drains, water creates a vacuum siphon that sucks the trap dry, allowing toxic sewer gas into the home. Modern code strictly requires P-traps vented through the roof or with an approved Air Admittance Valve (AAV / Cheater Vent).