I have completed a 30-day notice period as per the terms of my employment policy. I had the Head of Department (HOD) sign my resignation letter before the 30 days. However, the HR person has not agreed with this and is trying to extend the notice period. This may impact my clearance. In this situation, can I take any legal action? Or what actions should be taken against this situation?