
# dependencies
Markdown = require './Markdown'

# template
module.exports = (options) ->

  # validate input
  if not options.domain
    throw new Error "ABT_CookiePolicy requires 'domain'"
  if not options.company
    throw new Error "ABT_CookiePolicy requires 'company'"

  # policy
  Markdown """

    #

    # Cookies & Other Storage Technologies

    Cookies are small pieces of text used to store information on web browsers. Cookies are used to store and receive identifiers and other information on computers, phones, and other devices. Other technologies, including data we store on your web browser or device, identifiers associated with your device, and other software, are used for similar purposes. In this policy, we refer to all of these technologies as “cookies.”

    We use cookies if you have a #{options.company} account, use the #{options.company} Services, including our website and apps (whether or not you are registered or logged in), or visit other websites and apps that use the #{options.company} Services (including the Like button or our advertising tools). This policy explains how we use cookies and the choices you have.

    # Why do we use cookies?

    Cookies help us provide, protect and improve the #{options.company} Services, such as by personalizing content, tailoring and measuring ads, and providing a safer experience. While the cookies that we use may change from time to time as we improve and update the #{options.company} Services, they generally fall into the below categories of use:

    ### **Authentication**

    We use cookies to verify your account and determine when you’re logged in so we can make it easier for you to access the #{options.company} Services and show you the appropriate experience and features.

    ### **Security, site and product integrity**

    We use cookies to help us keep your account, data and the #{options.company} Services safe and secure. We also use cookies to combat activity that violates our policies or otherwise degrades our ability to provide the #{options.company} Services.

    ### **Advertising, insights and measurement**

    We use cookies to help us show ads for businesses and other organizations to people who may be interested in the products, services or causes they promote. We also use cookies to help measure the performance of ad campaigns for businesses that use the #{options.company} Services. Cookies help us serve and measure ads across different browsers and devices used by the same person.

    Cookies also allow us to provide insights about the people who use the #{options.company} Services, as well as, the people who interact with the ads, websites, and apps of our advertisers and the businesses that use the #{options.company} Services.

    We also use cookies to help you opt out of seeing ads from #{options.company} based on your activity on third-party websites. Learn more about the information we receive, how we decide which ads to show you on and off the #{options.company} Services, and the controls available to you.

    ### **Site features and services**

    We use cookies to enable the functionality that helps us provide the #{options.company} Services. We also use cookies to help provide you with content relevant to your locale.

    ### **Performance**

    We use cookies to provide you with the best experience possible.

    ### **Analytics and research**

    We use cookies to better understand how people use the #{options.company} Services so that we can improve them.

    # Where do we use cookies?

    We may place cookies on your computer or device, and receive information stored in cookies, when you use or visit:
    - The #{options.company} Services;
    - Services provided by other members of the #{options.company} family of companies; and
    - Services provided by other companies that use the #{options.company} Services (such as companies that incorporate the Like button or #{options.company}’s advertising services into their websites and apps).

    We may also set and receive information stored in cookies from other domains used by the #{options.company} family of companies, including the atdmt.com, liverail.com and Instagram.com domains.

    # Do other parties use cookies in connection with the #{options.company} Services?

    Yes, other parties may use cookies on the #{options.company} Services to provide services to us and the businesses that advertise on #{options.company}.

    For example, our measurement partners use cookies on the #{options.company} Services to help advertisers understand the effectiveness of their #{options.company} advertising campaigns and to compare the performance of those campaigns to ads displayed on other websites and apps. Learn more about the companies that use cookies on the #{options.company} Services.

    Third parties also use cookies on their own sites and apps in connection with the #{options.company} Services. To understand how other parties use cookies, please review their policies.

    # How can you control #{options.company}’s use of cookies to show you ads?

    One of the ways we use cookies is to show you useful and relevant ads on and off #{options.company}. You can control how we use data to show you ads by using the tools described below.

    ### **If you have a #{options.company} Account:**

    - You can use your ad preferences to learn why you’re seeing a particular ad and control how we use information we collect to show you ads.
    - Some of the ads you see are based on your activity on websites and apps beyond the #{options.company} family of companies. We call this online interest-based advertising. You can control whether you see online interest-based ads from #{options.company} in your ad settings.
    - The #{options.company} Audience Network is a way for advertisers to show you ads in apps and websites beyond the #{options.company} family of companies. One of the ways Audience Network shows relevant ads is by using your ad preferences to determine which ads you may be interested in seeing. You can control this in your ad settings.

    ### **Everyone:**

    You can opt out of seeing online interest-based ads from #{options.company} and other participating companies through the Digital Advertising Alliance in the US, the Digital Advertising Alliance of Canada in Canada, or the European Interactive Digital Advertising Alliance in Europe or through your mobile device settings.

    ### **More information about online advertising:**

    The advertising companies we work with generally use cookies and similar technologies as part of their services. To learn more about how advertisers generally use cookies and the choices they offer, you can review the following resources:
    - Digital Advertising Alliance
    - Digital Advertising Alliance of Canada
    - European Interactive Digital Advertising Alliance

    ### **Browser cookie controls:**

    In addition, your browser or device may offer settings that allow you to choose whether browser cookies are set and to delete them. For more information about these controls, visit your browser or device's help material. Certain parts of the #{options.company} Services may not work properly if you have disabled browser cookie use.

    #

    //Date of Last Revision: July 23, 2017//

  """
