Examine the crucial role of chitosan as an effective and eco-friendly flocculant in environmental remediation, particularly in wastewater treatment and heavy metal removal.