Design a system to support real-time collaboration on legal documents with conflict resolution and offline edits.