Scaling Legal AI: Benchmarking Mamba and Transformers for Statutory Classification and Case Law Retrieval