/* The privacy policy: Figma 2252:15069. It wears the site's own stylesheet (site.css: tokens, grid, header, type) and
   these few rules. The page is written by website/build-privacy.py from website/privacy-policy.md. */

/* The main page's background, without the shader */
.policy-page { position: relative; z-index: 1; padding-bottom: calc(var(--u) * 245); }
.policy-page .backdrop { position: fixed; inset: 0; z-index: -1; }

/* The title and the date stand where the main page's hero words stand */
.policy-head { padding-top: calc(var(--u) * 300); }
.policy-head > * { grid-column: 2 / span 4; }

/* Entrance (privacy.js): the header, then the title, the date and the opening paragraphs, each on Motion.gentle */
[data-enter="p-title"] { transition-delay: 0.25s; }
[data-enter="p-date"] { transition-delay: 0.45s; }
[data-enter="p-intro"] { transition-delay: 0.65s; }

/* The two opening paragraphs, as the main page's intro message */
.policy-page .intro { padding-top: calc(var(--u) * 100); }
.policy-page .intro-text strong { font-weight: inherit; }

/* Each part: its heading beside its text, as sections 7 and 8; a line between parts */
.policy-page .split { margin-top: 0; }
.policy-page .intro + .split { margin-top: calc(var(--u) * 150); }
.policy-rule { padding-block: calc(var(--u) * 100); }
.policy-rule hr { grid-column: 2 / span 8; height: 1px; margin: 0; border: 0; background: var(--border-moderate); }
.policy-body { display: grid; gap: calc(var(--u) * 20); font-size: var(--body); line-height: 1.5; color: var(--text-secondary); }
.policy-body strong { font-weight: 500; color: var(--text-primary); }
.policy-body ul { display: grid; gap: calc(var(--u) * 20); list-style: disc; padding-left: calc(var(--u) * 30); }
.policy-body li::marker { color: var(--text-tertiary); }
.policy-body h3 { font-weight: 500; color: var(--text-primary); }
.policy-page a { text-decoration: underline; text-decoration-color: var(--border-intense); text-underline-offset: 0.15em; transition: text-decoration-color var(--dur-quick) var(--ease-quick); }
.policy-page a:hover { text-decoration-color: currentColor; }

/* A table, should the policy carry one */
.policy-body .table { overflow-x: auto; }
.policy-body table { width: 100%; border-collapse: collapse; font-size: var(--fine); line-height: 1.45; }
.policy-body th, .policy-body td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border-moderate); }
.policy-body th { font-weight: 500; color: var(--text-primary); }

/* ---------- The stacked layout: the main page's phone values, and these */
@media (max-width: 899px) {
  :root {
    --policy-top: 150px;       /* the window's top to the title */
    --gap-policy-date: 15px;   /* the title to the date */
    --gap-policy-intro: 50px;  /* the date to the opening paragraphs */
    --gap-policy-first: 100px; /* the opening paragraphs to the first part */
    --gap-policy-rule: 50px;   /* above and below the line between parts */
    --gap-policy-para: 15px;   /* between a part's paragraphs */
    --policy-foot: 100px;      /* the last part to the page's end */
  }
  .policy-page { padding-bottom: var(--policy-foot); }
  .policy-head { padding-top: var(--policy-top); }
  .policy-head .hero-line { margin-top: var(--gap-policy-date); }
  .policy-page .intro { padding-top: var(--gap-policy-intro); }
  .policy-page .intro + .split { margin-top: var(--gap-policy-first); }
  .policy-rule { padding-block: var(--gap-policy-rule); }
  .policy-body, .policy-body ul { gap: var(--gap-policy-para); }
  .policy-body ul { padding-left: 20px; }
}
