Cost depends on the work. A one-time contract review or entity formation is more predictable than ongoing litigation, where the cost depends on how the dispute unfolds. Some matters are billed hourly, others as a flat fee, and many firms offer an initial consultation to scope the work before you commit.
Preventive work is usually the most cost-effective because it reduces the chance of a far larger expense later.