Understanding the Influence of Public Opinion on Lawmaking: An In-Depth Analysis of Legislative Processes