/* church-flow.com's legal pages (W14; DESIGN.md): the privacy and terms page, the privacy policy, the terms of service,
   the mobile app terms and the PAIA manual, pinned up on the foyer notice board as the documents they are. They share
   one template, so they share this sheet, as the feature, compare and guide pages share theirs (decision W14-v).
   board.css draws the board, the header, paper and its pins, the type, the links and the footer; this sheet lays out
   the main notice (the title over the lede) and the document: each of its parts on a wide sheet of its own, one under
   another, its heading at the left, kept in view while its clauses are read at the right, then the company's address
   as small print on the felt. Every word is each page's as it stood. */

/* The lead: the main notice across the board, hung from two pins; the title at its left, the lede at its right, level
   with the title's last line, on the same columns as the document's parts below. */
.lead { padding-top: 30px; }
.lead-sheet { grid-column: 1 / -1; --r: -0.35deg; }
.lead-sheet > .paper { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: end; padding: 64px 52px 56px; }
/* A document's title is two or three words, set at poster size; its longest line ("Mobile app") fits its column, so
   the lede starts where every part's clauses start. */
.display { grid-column: 1; margin: 0; font-stretch: 68%; font-weight: 900; font-size: clamp(56px, 7.4vw, 104px); line-height: 0.88; letter-spacing: -0.012em; }
.display .line { display: block; }
.display .line + .line { margin-top: 0.04em; }
/* The red marker underlines the title's marked word, the old page's gradient word. */
.marked { padding: 0 0.03em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-repeat: no-repeat; background-position: 0 calc(100% - 0.02em); background-size: 100% 0.15em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'><path d='M5 14c64-6 132-8 204-7 70 1 130 4 187-1' fill='none' stroke='%23e0261d' stroke-width='9' stroke-linecap='round' opacity='.92'/></svg>"); }
.lead-sheet .lede { grid-column: 2; margin: 0 0 6px; max-width: 56ch; font-size: 19px; line-height: 1.5; color: #262626; }

/* The document: its parts one under another on the board's grid, the felt between them the grid's gap. Each part is a
   wide sheet hung from its pin: its heading at the left, its clauses at the right. */
.doc { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: start; padding: 56px 52px 46px; }
/* The heading in the poster face, sized for a document's longer labels; it stays in view, clear of the header's band,
   while its part's clauses are read. */
.doc-head { position: sticky; top: var(--stick-top); transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1); font-size: clamp(34px, 3.1vw, 46px); }
/* The clauses at a reading measure, each between pencil rules, its lead-in in bold. */
.clauses { max-width: 66ch; font-size: 17px; line-height: 1.6; }
.clauses > p { margin: 0; padding: 16px 0 17px; border-top: 1px solid var(--rule); }
.clauses > p:first-child { padding-top: 0; border-top: 0; }
.clauses > p:last-child, .clauses > ul:last-child, .clauses > ol:last-child { padding-bottom: 0; }
.clauses strong { font-weight: 800; }
/* A list under its lead-in (the PAIA manual's), each line marked with a small square of toner. */
.clauses ul { list-style: none; margin: -8px 0 0; padding: 0 0 16px; }
.clauses li { position: relative; padding: 5px 0 5px 24px; }
.clauses li::before { content: ""; position: absolute; left: 4px; top: calc(5px + 0.66em); width: 7px; height: 7px; background: var(--ink); }
/* A cookie's name, typed as the browser stores it. */
.key { padding: 1px 5px; background: rgba(18, 18, 18, 0.07); font-weight: 600; white-space: nowrap; }
/* The company's address: small print on the felt under the document. */
.foot { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; text-wrap: balance; }
/* The address's link on the felt stays white when pointed at (the board's royal would vanish into the felt). */
.foot .link:hover { color: var(--felt-ink); text-decoration-color: var(--yellow); }

/* The app pages (the Recore and Church Flow apps' privacy policy, terms of use, support and account deletion pages,
   app-legal/) are built from the same parts and share this sheet, with a few of their own; they stay public and run
   no script. Their band: the brand, its tag, and the four pages on label tape, the page served on white tape. */
.app-bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; min-height: 80px; }
.app-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--felt-ink-2); text-shadow: none; }
.app-head .app-links { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-left: auto; }
.app-links .tape:nth-child(odd) { --t: -0.5deg; }
.app-links .tape:nth-child(even) { --t: 0.6deg; }
/* A strip of label tape across the main notice's top edge carries the page's date line. */
.label { position: absolute; z-index: 3; top: -14px; margin: 0; --t: -1.4deg; }
.label.tape:hover { transform: rotate(var(--t)); }
.lead-sheet .label { left: 50%; translate: -50% 0; }
/* A title that is a sentence sets across the notice, a size down, the lede under it at the right. */
.display--wide { grid-column: 1 / -1; font-size: clamp(48px, 6.6vw, 96px); }
.display--wide + .lede { margin-top: 30px; }
/* What comes before a document's first part, on the main notice under the lede: the privacy policy's opening
   paragraphs, the support page's contact note. */
.preamble { grid-column: 2; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); }
/* A callout: a note on yellow paper stuck to its sheet. */
.callout { margin: 10px 0 22px; padding: 22px 24px; background: var(--grain), var(--yellow); box-shadow: var(--paper-shadow); }
.callout h3 { margin: 0 0 10px; font-stretch: 75%; font-weight: 900; font-size: 24px; line-height: 1.05; }
.callout p { margin: 0 0 6px; }
.callout > :last-child, .clauses > .callout:last-child { margin-bottom: 0; }
.callout ul { margin: 0; padding: 0; }
/* The deletion steps, each numbered in the calendar's day style. */
.steps { list-style: none; margin: 0; padding: 0 0 6px; counter-reset: step; }
.steps li { position: relative; padding: 16px 0 17px 60px; border-top: 1px solid var(--rule); counter-increment: step; }
.steps li:first-child { padding-top: 2px; border-top: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; width: auto; height: auto; background: none; font-stretch: 62%; font-weight: 900; font-size: 40px; line-height: 0.84; }
.steps li:first-child::before { top: 0; }
/* Their footer, on the board's footer band: the four pages, then the apps' two lines. */
.app-foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.app-foot-links a { color: var(--felt-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.app-foot-links a:hover { text-decoration: underline; }
.app-foot-meta { margin: 0; font-size: 14px; line-height: 1.5; color: var(--felt-ink-2); }
.app-foot-links + .app-foot-meta { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.app-foot-meta + .app-foot-meta { margin-top: 6px; }
.app-foot-meta a { color: var(--felt-ink); }

/* The first screen pins itself up: the main notice, each pin pressed in; then the marker draws. */
@keyframes underline { from { background-size: 0% 0.15em; } }
@media (prefers-reduced-motion: no-preference) {
  .lead-sheet { animation: pin-in 0.95s var(--ease-out) 0.05s backwards; }
  .lead-sheet > .pin { animation: pin-press 0.5s var(--ease-out) 0.67s backwards; }
  .marked { animation: underline 1.1s var(--ease-out) 1s backwards; }
}

/* Tablets: the lede under the title, each part's clauses under its heading, which scrolls with them. */
@media (max-width: 1100px) {
  .lead-sheet > .paper { grid-template-columns: minmax(0, 1fr); }
  .lead-sheet .lede { grid-column: 1; margin-top: 30px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-head { position: static; }
  .clauses { margin-top: 24px; max-width: 68ch; }
  .preamble { grid-column: 1; }
}
/* With no script to slide the app pages' band away, it scrolls with the page where a tablet or a phone has little
   room (the board's own band slides away there). */
@media (max-width: 1040px) {
  .app-head { position: relative; }
}

/* Phones: one column; notices keep 22px of padding. */
@media (max-width: 700px) {
  .lead { padding-top: 18px; }
  /* The title scales with the main notice's own width, so a desktop window's scrollbar cannot change it. */
  .lead-sheet > .paper { padding: 46px 22px 30px; container-type: inline-size; }
  .display { font-size: clamp(44px, calc(100cqi / 5.2), 76px); line-height: 0.9; }
  .lead-sheet .lede { margin-top: 24px; font-size: 16.5px; }
  .doc { padding: 40px 22px 26px; }
  .doc-head { font-size: 34px; }
  .clauses { margin-top: 20px; font-size: 16px; }
  /* A sentence title sets as the guides' do; the date line's tape a size smaller, wrapping inside a narrow sheet, the
     sheet's pins just below it. */
  .display--wide { font-size: clamp(30px, calc(100cqi / 8.4), 44px); line-height: 0.94; }
  .lead-sheet .label { padding: 7px 8px 6px; font-size: 11.5px; letter-spacing: 0.1em; width: max-content; max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
  .lead-sheet:has(> .paper > .label) > .pin { top: 22px; }
  .callout { padding: 18px 18px; }
  .steps li { padding-left: 50px; }
  .steps li::before { font-size: 34px; }
  /* The app pages' band: the brand on one line, the four tapes under it. */
  .app-bar { min-height: 0; padding-top: 14px; padding-bottom: 14px; row-gap: 12px; }
  .app-head .app-links { margin-left: 0; padding: 0; gap: 10px 10px; }
}
