Merge "Use legacy insets for compatibility behaviour" into main