extends includes/layout.pug

block head
  title Privacy policy

block content
  main.privacy-page
    h1 Privacy policy
    p This document contains details about the data this website collects, what it is used for, how it is stored, how it is shared, and how it can be removed.
    h2 Data collected
    h3 Data provided by you
    p CloudTube will store this information when you personally enter it into the site:
    ul
      li personal settings
      li list of channels you have subscribed to
      li list of videos you have watched (only if enabled in settings)
    h3 Data collected passively
    p When your device requests any resource from CloudTube, this information about the request may be stored for up to 14 days:
    ul
      li the time the request was made
      li the IP address
      li the requested URL
      li the response status code
    h2 #[img(src="/static/images/bow.png")] #[a(href="/eirTube") EirTube]-specific
    p On this fork of CloudTube, YouTube videos and video data are downloaded automatically and stored on the machine running the server.
    h3 What data is stored
    ul
      li actual video files in mp4 format (one for each downloaded video quality)
      li YouTube's public-facing metadata about a video (title, video id, thumbnail, description, qualities, publish date, tags, view and like count, author, recommended videos)
      li #[a(href="https://dearrow.ajay.app/") DeArrow] alternate title and thumbnail data for each video
      li #[a(href="https://sponsor.ajay.app/") SponsorBlock] sponsor segment data for each video
    h3 What the data is used for
    ul
      li providing the core service
      li allowing switching to different qualities of videos
      li providing DeArrow integration into recommended videos, search results, and channel pages
      li providing SponsorBlock integration into watching video
    h3 When the data is deleted
    ul
      li video files are deleted oldest-first as the cache fills up
      li video metadata, DeArrow data, and SponsorBlock data are deleted when the files grow larger than !{converters.bytesToSizeText(constants.server_setup.cache_json_max_size)} combined
      if constants.takedown
        li if a #[a(href="/takedown") takedown request] is issued, video files are deleted automatically
    h2 Accounts and cookies
    i #[img(src="/static/images/bow.png")] Behaves differently on this fork.
    p CloudTube does not allow users to create accounts.
    p When watching videos, subscribing to a channel, or saving settings, an ephemeral session is created and linked to a cookie.
    p On future visits, the cookie will be used to look up the session, and provide a response based on that stored information.
    if constants.server_setup.ratelimiting.enabled
      p Additionally, your IP address is stored in memory along with the cookie to keep track of your requests to the API and apply rate-limiting.
    p As described above, no personally identifiable information is linked to sessions.
    p If the user never personally provides data to the site, no cookie will be stored.
    h2 What the data is used for
    ul
      li providing the core service
      li providing information for debugging
    h2 How the data is shared
    h3 With YouTube
    p YouTube is a company owned by Google, Inc. CloudTube displays information from YouTube.
    p When you perform a query on CloudTube that requires data from YouTube, such as making a search or loading a video, your query is forwarded to YouTube.
    p For example, when searching, YouTube receives a query for those search terms, and when watching a video, YouTube receives a page load for that video.
    p When watching a video, your browser connects to googlevideo.com directly to request the video stream. This connection, and any data stored by YouTube as a result, is subject to #[a(href="https://policies.google.com/privacy") Google's privacy policy].
    p All other queries are forwarded to your selected Invidious instance, which forwards them to YouTube. YouTube does not receive any metadata about you for these queries, only the query itself.
    h3 With other organisations
    p CloudTube does not share any data with other people or organisations.
    h2 How to delete your data
    p #[a(href="/settings") Visit the settings page] and find the "delete data" section. Read the text.
    p To delete your data, check "I understand the consequences", then click "permanently erase my data".
    p This will erase all of your data from the server, and delete the unique cookie from your web browser.
