It’s as recent as anything built before 1986 when it comes to lead pipes: https://www.epa.gov/lead/protect-your-family-exposures-lead
We did actually have lead free petrol before then in the UK and the government even made it significantly cheaper. But nobody wanted it, they chose to pay extra to put toxic lead in their cars. Damaging their engine bothered people more than damaging their kids brains (or even their own brains).
Luckily the UK was part of Europe and EU legislation resulted in leaded fuel being removed from forecourts.