Leiria, Renting, Investment, Legislação