The Safe Spaces Act or the Bawal Bastos Law defines the acts considered as gender-based sexual harassment in public spaces, workplaces, educational institutions, and online. It protects individuals regardless of their sex, sexual orientation, or gender identity and expression by providing protective measures and penalties for violations.