import CloseIcon from '@mui/icons-material/Close';
import { Box, Grid, Typography } from '@mui/material';
import React from 'react';
import { useStyles } from './styles/termsAndConditionStyles';

const TermsAndCondition = ({ onClose }) => {
  const closeTheDrawer = () => {
    onClose();
  };

  const classes = useStyles();
  return (
    <>
      <Box className={classes.outerBox}>
        <Grid container alignItems="center" className={classes.heading}>
          <Grid item md={11}>
            <Typography className={classes.headingTitle}>
              Terms and Conditions{' '}
            </Typography>
          </Grid>
          <Grid item md={1} className={classes.TermsAndConditionCloseIcon}>
            <CloseIcon onClick={closeTheDrawer} />
          </Grid>
        </Grid>
        <Box className={classes.contentBox}>
          <Box className={classes.textBox}>
            <div>
              <p>
                Welcome to 24x7 AI Healthcare Receptionist, a mobile
                SaaSlication owned and operated by Reddy Co Pty Ltd ("Company,"
                "we," "us," or "our"). By accessing or using the 24x7 AI
                Healthcare Receptionist software as a service (the "SaaS"), you
                agree to be bound by these Terms of Use ("Terms"). If you do not
                agree to these Terms, please do not use the SaaS.
              </p>
            </div>
            <div>
              <p className={classes.subHeadingTitle}>
                USE TO BE IN CONFORMITY WITH THE PURPOSE
              </p>{' '}
              <p className={classes.subHeadingText}>
                <ol className={classes.outerList} type="I">
                  <li>
                    <p className={classes.listTitle}>Eligibility</p>
                    <ol className={classes.subList} type="a">
                      <li>
                        You must be at least 18 years old to use this SaaS. By
                        using the SaaS, you represent and warrant that you have
                        the legal capacity to enter into these Terms.
                      </li>
                    </ol>
                  </li>
                  <li>
                    <p className={classes.listTitle}>Use of the SaaS</p>
                    <ol className={classes.subList} type="a">
                      <li>
                        The SaaS is intended for personal, non-commercial use to
                        support mental wellness.
                      </li>
                      <li>
                        You agree not to misuse the SaaS, including engaging in
                        illegal activities, harassing other users, or attempting
                        to compromise the security of the SaaS.
                      </li>
                    </ol>
                  </li>
                  <li>
                    <p className={classes.listTitle}>
                      User Accounts and Privacy
                    </p>
                    <ol className={classes.subList} type="a">
                      <li>
                        You may be required to create an account. You are
                        responsible for maintaining the confidentiality of your
                        account information.
                      </li>
                      <li>
                        Your use of the SaaS is also governed by our Privacy
                        Policy, which details how we collect, use, and protect
                        your data.
                      </li>
                    </ol>
                  </li>
                  <li>
                    <p className={classes.listTitle}>
                      Content and Community Guidelines
                    </p>
                    <ol className={classes.subList} type="a">
                      <li>
                        You are responsible for any content you submit to the
                        SaaS.
                      </li>
                      <li>
                        We reserve the right to moderate, remove, or restrict
                        content that violates our guidelines or these Terms.
                      </li>
                    </ol>
                  </li>
                  <li>
                    <p className={classes.listTitle}>
                      Emergency and Medical Disclaimer
                    </p>
                    <ol className={classes.subList} type="a">
                      <li>
                        The SaaS is not a substitute for professional medical or
                        emergency services.
                      </li>
                      <li>
                        In case of a crisis, we encourage you to contact
                        emergency services immediately.
                      </li>
                    </ol>
                  </li>
                  <li>
                    <p className={classes.listTitle}>Limitation of Liability</p>
                    <ol className={classes.subList} type="a">
                      <li>
                        We do not guarantee uninterrupted access to the SaaS and
                        are not liable for any losses or damages resulting from
                        its use.
                      </li>
                      <li>
                        The SaaS is provided on an "as is" and "as available"
                        basis without warranties of any kind.
                      </li>
                    </ol>
                  </li>
                  <li>
                    <p className={classes.listTitle}>Modifications to Terms</p>
                    <p className={classes.subList}>
                      We reserve the right to update these Terms at any time.
                      Continued use of the SaaS constitutes acceptance of any
                      revisions.
                    </p>
                  </li>
                  <li>
                    <p className={classes.listTitle}>Limitation of Liability</p>
                    <p className={classes.subList}>
                      These Terms are governed by the laws of South Australia,
                      Australia.
                    </p>
                    <p className={classes.subList}>
                      For inquiries, contact us at:
                      <strong>
                        Reddy Co Pty Ltd, 606/147 Pirie St Adelaide SA 5000,
                        Australia.
                      </strong>
                    </p>
                  </li>
                </ol>
              </p>
            </div>
          </Box>
        </Box>
      </Box>
    </>
  );
};

export default TermsAndCondition;
