import 'package:citycards_customer/common_packages/app_bar.dart';
import 'package:citycards_customer/common_packages/custom_text.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class PrivacyPolicyPage extends StatelessWidget {
  const PrivacyPolicyPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: SingleChildScrollView(
          child: Padding(
            padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h),
            child: Column(
              children: [
                CommonAppBar(isWhiteLogo: false, isProfilePage: true),
                SizedBox(height: 12.h),
                Divider(height: 1.h, color: Color(0xFFD9D9D9)),
                SizedBox(height: 22.h),

                // Back + Title
                Row(
                  children: [
                    GestureDetector(
                      onTap: () {
                        Navigator.pop(context);
                      },
                      child: Icon(Icons.arrow_back, size: 24.sp),
                    ),
                    SizedBox(width: 8.w),
                    Text(
                      "Privacy Policy",
                      style: TextStyle(
                        fontSize: 12.sp,
                        fontWeight: FontWeight.w500,
                      ),
                    ),
                  ],
                ),
                SizedBox(height: 32.h),
                CustomText(
                  text:
                      "Your use of our website is governed by the following terms and conditions (“Terms of Use”), as well as the CARDONE CAPITAL Privacy Policy and other operating rules, minimum qualifications and cautions posted throughout the website or presented to you individually during the course of your use of the website (collectively, the “Terms”). \n\n"
                      "The Terms govern your use of the website and CARDONE CAPITAL reserves the right to update or replace the Terms any time without notice.  You are advised to review the Terms for any changes when you visit the website even if you have not received a notification of changes as you are bound by them even if you have not reviewed them. \n\n"
                      "Your viewing and use of the website after such change constitutes your acceptance of the Terms and any changes to such terms. If at any time you do not want to be bound by the Terms you should logout, exit and cease using the website immediately.",
                  size: 14.sp,
                  weight: FontWeight.w400,
                  color: Color(0xFF000000).withOpacity(.6),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
