/* ════════════════════════════════════════════════════════════════════════
   privacy.css: the Privacy page. Loaded only on /privacy/, unlayered. Scoped to .page--privacy.

   Seven plain statements as petal rows: six petals and the core. From 56rem the bloom they
   build stands beside the list and stays in view; on a phone the mark opens in the hero.
   Nothing is hidden here unless privacy.js has said it is running (.is-live), motion is
   allowed and the design system's failsafe has not fired.
   ════════════════════════════════════════════════════════════════════════ */

.page--privacy .privacy-hero__art { display: grid; justify-items: start; }
/* The mark is a little larger than its disc and laid over it, so the disc stays a true circle. */
.page--privacy .privacy-hero__disc {
  position: relative;
  display: block;
  inline-size: min(46vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
}
.page--privacy .privacy-hero__disc > .mark { position: absolute; inset: -4%; inline-size: 108%; block-size: 108%; max-inline-size: none; }

.page--privacy .privacy-grid { display: grid; gap: clamp(2rem, 1rem + 5vw, 5.5rem); align-items: start; }

/* The rows. White on bone, a full panel's corner, the petal standing in a disc of its own tint. */
.page--privacy .privacy-rows { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.page--privacy .privacy-row {
  --disc: clamp(3.25rem, 2.8rem + 1.8vw, 4.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1rem, .6rem + 1.6vw, 1.75rem);
  align-items: start;
  padding: clamp(1.15rem, .9rem + 1.4vw, 2rem);
  border-radius: var(--r-panel);
  background: var(--white);
}
.page--privacy .privacy-row__petal {
  display: grid;
  place-items: center;
  inline-size: var(--disc);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-mist);
}
.page--privacy .privacy-row__petal > .petal { --size: calc(var(--disc) * .58); vertical-align: 0; }
.page--privacy .privacy-row__petal--core { background: var(--gold-mist); }
.page--privacy .privacy-row__petal--core > span { inline-size: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.page--privacy .privacy-row__text { display: grid; gap: .45rem; justify-items: start; align-content: start; min-inline-size: 0; padding-block-start: .2rem; }
.page--privacy .privacy-row__title { font-size: var(--fs-sub); }
.page--privacy .privacy-row__text > p { max-inline-size: 36em; color: var(--fg-muted); }
.page--privacy .privacy-row__text > .btn { margin-block-start: .65rem; }
/* The seventh row is the core: the one place to ask. */
.page--privacy .privacy-row--core { background: var(--gold-mist); }
.page--privacy .privacy-row--core .privacy-row__petal--core { background: var(--white); }
.page--privacy .privacy-row--core .privacy-row__text > p { color: var(--fg); }

/* The bloom the rows build. */
.page--privacy .privacy-bloom { display: none; }
@media (min-width: 56rem) {
  .page--privacy .privacy-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .page--privacy .privacy-bloom { display: block; }
  .page--privacy .privacy-bloom__disc {
    position: sticky;
    inset-block-start: calc(var(--header-h) + clamp(1.5rem, 8vh, 5rem));
    inline-size: min(100%, 24rem);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    background: var(--white);
    overflow: hidden;          /* the mark turns inside the disc: a turning square must not widen the page */
  }
  .page--privacy .privacy-bloom__disc > .mark { position: absolute; inset: -4%; inline-size: 108%; block-size: 108%; max-inline-size: none; }
}
/* A phone has no room beside the list, so there the bloom the rows build is a small disc that floats
   at the foot of the screen while the statements are read (the same place and size as Our work's
   small dial). Only when privacy.js is running and motion is allowed: otherwise the hero's mark is
   the whole of it, as before. */
@media (max-width: 55.99rem) and (prefers-reduced-motion: no-preference) {
  html.js:not(.dt-failsafe) .page--privacy .privacy-bloom.is-live {
    display: block;
    position: fixed;
    inset-block-end: calc(1rem + var(--dock-h, 0px) + env(safe-area-inset-bottom));
    inset-inline-end: max(.75rem, var(--gutter) - .25rem);
    z-index: 3;
    inline-size: 4.5rem;
    pointer-events: none;
  }
  .page--privacy .privacy-bloom.is-live .privacy-bloom__disc {
    position: relative;
    inline-size: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0;
    scale: .6;
    transition: opacity var(--dur-3) ease, scale var(--dur-4) var(--ease-pop);
  }
  .page--privacy .privacy-bloom.is-live.is-near .privacy-bloom__disc { opacity: 1; scale: 1; }
  .page--privacy .privacy-bloom.is-live .privacy-bloom__disc > .mark { position: absolute; inset: -4%; inline-size: 108%; block-size: 108%; max-inline-size: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.dt-failsafe) .page--privacy .privacy-bloom.is-live :is(.mark__petal, .mark__core):not(.is-on) { opacity: 0; }
  /* While it is being built the bloom stands one petal-step back. The core's arrival turns it home
     (privacy.js, which then sets .is-whole), so it comes to rest exactly as the mark is drawn. */
  html.js:not(.dt-failsafe) .page--privacy .privacy-bloom.is-live:not(.is-whole) .privacy-bloom__disc > .mark { transform: rotate(-60deg); }
}
