import 'package:flutter/material.dart';

class PrivacyPolicyScreen extends StatelessWidget {
  const PrivacyPolicyScreen({Key? key}) : super(key: key);

  static const String _policy = '''
Privacy Policy for Eventify™
Effective Date: 16 September 2025
Last Updated: 16 September 2025

Eventify™ (“we,” “our,” or “us”) respects your privacy and is committed to protecting it through this Privacy Policy. This Privacy Policy explains how we collect, use, and safeguard personal information when you use our application Eventify™ (the “App”). Eventify™ is currently in its beta testing phase and may undergo adjustments or improvements in the future.

By using Eventify™, you agree to the collection and use of information in accordance with this Privacy Policy.

Information We Collect
Currently, as part of our internal beta testing, Eventify™ may collect limited information, which includes:

• Calendar entries and event data you choose to create or manage within the App.

• Basic account information, if required for testing purposes (such as name or email).

• Device information (such as operating system type, app version, and performance logs) to improve stability and functionality during the beta phase.

• Usage data (like features accessed and time spent in the app) to help us optimize performance.

We do not intentionally collect sensitive personal data unless explicitly required for testing and with your consent.

How We Use Your Information
We use the information we collect to:

• Provide and improve the functionality of Eventify™.

• Identify issues and enhance user experience during the beta testing phase.

• Communicate with testers about app updates or feedback requests.

• Ensure the security and stability of the application.

Your data will not be sold or shared with third parties for commercial purposes.

Data Sharing and Disclosure
We may share information in limited circumstances:

• With service providers that help us process data and improve app performance.

• If required by law, regulation, or legal process.

• In the event of a company restructuring, merger, or acquisition.

Outside of these circumstances, your personal data will remain private.

Data Security
We implement industry-standard security measures to protect your data. However, since Eventify™ is in its beta stage, no method of transmission or storage can be guaranteed entirely secure. We encourage testers to avoid entering sensitive or confidential information in the App during beta testing.

Data Retention
Data collected during the beta testing phase will only be retained for as long as necessary to fulfill the purposes outlined in this Policy. Test data may be deleted upon conclusion of the beta testing program, unless otherwise required by law.

Your Rights
Depending on your region, you may have rights regarding your personal data, including:

• Accessing the data we hold about you.

• Requesting correction or deletion of your data.

• Withdrawing consent at any time (note: withdrawal may affect participation in beta testing).

You may contact us to exercise these rights.

Children’s Privacy
Eventify™ is not directed toward children under 13 years of age. We do not knowingly collect personal data from children. If we learn that information of a child under 13 has been collected, we will promptly delete it.

Changes to This Privacy Policy
As Eventify™ evolves from beta to public release, we may update this Privacy Policy from time to time. Any changes will be reflected with a new “Last Updated” date. We encourage testers to review this page periodically to stay informed.

Contact Us
If you have questions, concerns, or feedback regarding this Privacy Policy, you may contact us at:

Eventify™ Support Team
Email: info@wp.sicherhaven.com
''';

  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context);
    final textStyle = theme.textTheme.bodyMedium;
    final headingStyle = theme.textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold);

    return Scaffold(
      appBar: AppBar(
        title: const Text('Privacy Policy'),
        centerTitle: true,
      ),
      body: SafeArea(
        child: SingleChildScrollView(
          padding: const EdgeInsets.symmetric(horizontal: 18.0, vertical: 20.0),
          child: SelectableText(
            _policy,
            style: textStyle?.copyWith(height: 1.45, color: theme.colorScheme.onSurface) ?? TextStyle(height: 1.45, color: theme.colorScheme.onSurface),
          ),
        ),
      ),
    );
  }
}
