A security deposit is governed by the hire and native legislation, which may perhaps set rules for deductions, notices
https://www.designspiration.com/ottikadandolopwzpf/
A defense deposit is ruled by means of the rent and local legislations, which might also set policies for deductions, notices, and the cut-off date for returning any balance.