Are holding deposits legal in Wales and Scotland?

In England and Wales, landlords may request a holding deposit equal to one week's rent.

However, in Scotland, landlords cannot request a holding deposit. Instead, a deposit (maximum two months' rent) is allowed.