# Privacy Policy

**Leveling App: Quest System**
**Developer:** ShirinX (Shirin Dev)
**Contact:** shirin.dev.app@gmail.com
**Last Updated:** March 7, 2026

---

## 1. Introduction

Welcome to Leveling App: Quest System ("the App"), developed and operated by ShirinX ("we", "our", or "us"). This Privacy Policy explains how we collect, use, store, and protect your personal information when you use our App.

By using the App, you agree to the collection and use of information as described in this policy.

---

## 2. Information We Collect

### 2.1 Account & Profile Data
- Email address
- Display name or username
- Account creation date

### 2.2 App Usage & Progress Data
- Quest and sub-quest completion history
- XP earned and attribute progression
- Streak data and milestone records
- Skills collected
- Onboarding preferences (skill focus, learning pace, goals)
- User-submitted proof or reflections (text, optional)

### 2.3 Analytics & Usage Data
- App session duration and frequency
- Feature interaction events (e.g., quest opened, sub-quest completed)
- Device type, operating system version
- Crash reports and performance diagnostics
- General geographic region (country-level only)

### 2.4 AI Interaction Data
- Quest context and sub-quest generation prompts sent to our AI provider
- Completion context used to generate subsequent sub-quests

---

## 3. How We Use Your Information

We use the information collected to:

- Create and manage your account
- Generate personalized AI quests based on your skill, goals, and progress
- Track your progression, XP, and attribute growth
- Deliver streak tracking and milestone rewards
- Improve app performance, fix bugs, and optimize user experience
- Analyze aggregate usage patterns to improve features
- Respond to support requests and inquiries

We do **not** use your data for advertising purposes. We do **not** sell your personal data to third parties.

---

## 4. Third-Party Services

The App integrates with the following third-party services, each with their own privacy practices:

### 4.1 Groq API
Used for AI-powered quest and sub-quest generation. Quest context data (your skill focus, progress, completion history) is sent to Groq to generate relevant content.
- Privacy Policy: [https://groq.com/privacy-policy](https://groq.com/privacy-policy)

### 4.2 Firebase (Google)
Used for authentication, database storage, and crash reporting.
- Privacy Policy: [https://firebase.google.com/support/privacy](https://firebase.google.com/support/privacy)

We ensure that data shared with third-party services is limited to what is strictly necessary for the App to function.

---

## 5. Data Storage & Security

- Your data is stored securely on Firebase infrastructure
- We implement industry-standard security measures including encryption in transit (HTTPS/TLS)
- Access to user data is restricted to authorized personnel only
- We retain your data for as long as your account is active, or as required by law

---

## 6. Data Retention & Deletion

### 6.1 Account Deletion
You can delete your account and all associated data at any time through:

1. **In-App Deletion** (Recommended)
   - Go to Settings → Data → Delete Account
   - Follow the on-screen instructions
   - Deletion is immediate and permanent

2. **Email Request**
   - Send a request to **shirin.dev.app@gmail.com**
   - We will process your request within **30 days**

**📋 For detailed step-by-step instructions, see our [Account Deletion Guide](account-deletion-guide.md).**

### 6.2 What Gets Deleted
When you delete your account, we permanently remove:
- All personal information (email, name, profile)
- All quest and progress data
- All cloud backups
- Your authentication credentials

### 6.3 Data Retention After Deletion
- Anonymized, aggregate analytics data may be retained after deletion as it cannot be linked back to you
- Data processed by third-party services (Groq, Firebase) may be retained according to their respective retention policies

---

## 7. Children's Privacy

The App is not intended for users under the age of **13**. We do not knowingly collect personal information from children under 13. If we become aware that a child under 13 has provided us with personal information, we will delete it promptly.

---

## 8. Your Rights

Depending on your location, you may have the following rights regarding your personal data:

- **Access:** Request a copy of the data we hold about you
- **Correction:** Request correction of inaccurate data
- **Deletion:** Request deletion of your data (see [Account Deletion Guide](account-deletion-guide.md))
- **Portability:** Request your data in a portable format

To exercise any of these rights, contact us at **shirin.dev.app@gmail.com**.

---

## 9. Changes to This Policy

We may update this Privacy Policy from time to time. When we do, we will update the "Last Updated" date at the top of this page. We encourage you to review this policy periodically.

Continued use of the App after changes constitutes acceptance of the updated policy.

---

## 10. Contact Us

If you have any questions or concerns about this Privacy Policy or how we handle your data, please contact us:

**ShirinX (Shirin Dev)**
📧 shirin.dev.app@gmail.com

---

## Related Documents
- **[Account & Data Deletion Guide](account-deletion-guide.md)** - Step-by-step instructions for deleting your account

---

*This privacy policy was written for compliance with Google Play Store requirements and general data protection best practices.*
