When you buy an apartment, you acquire the separate ownership of it. Additionally, this includes a share in the common property (e.g., garden). You can find the regulations in the Condominium Act.