Build a Nested Checkboxes component in React with parent-child selection logic.
Requirements:
- Render a hierarchical structure of checkboxes.
- Selecting a parent checkbox should:
- Select/deselect all its child checkboxes.
- Selecting/deselecting a child should:
- Update the parent to checked if all children are checked.
- Update the parent to unchecked if no children are checked.
- Update the parent to indeterminate if some children are checked.
- Indent children visually under their parent.
- Focus on functionality over styling.
- The component should work out-of-the-box in a live React preview (e.g., CodeSandbox/Sandpack).