GRAIL: Gradient-Based Adaptive Unlearning for Privacy and Copyright in LLMs