Enhancing portfolio resilience amid evolving legislation