Dunno about the basement as a appartment
My understanding is that Basements typically cannot be habitable under building code.
Meaning, they can only be used for storage or a garage.
Legally, you cannot have bedrooms, lounges, games rooms etc as there is not enough natural light.