Legal Requirements
For jurisdictions with stricter privacy laws requiring explicit consent before tracking
Critical Notices
When users must not miss important privacy information
Sensitive Data
Sites handling especially sensitive personal data requiring informed consent
## User Experience and Legal Tradeoffs
While scroll locking increases friction to ensure that consent is informed and explicit, this friction is a designed tradeoff in scenarios where legal obligations require demonstrable user consent.
### Best Practices
1. **Clear Messaging**: Explain why access is blocked and what action is required
2. **Simple Choices**: Make consent options straightforward and obvious
3. **Responsive Design**: Ensure the banner works well on all device sizes
4. **Visual Cues**: Add subtle visual indicators that the site is locked
5. **Accessibility**: Test with screen readers to confirm proper announcements and ensure compliance with both privacy law requirements and accessibility standards
### Common Pitfalls