Legal analysis