/* Privacy at a glance: a map of where data can go, then three cards, above the full policy. Every line on it is
   a summary of the policy text below; change both together. Uses cms.css's variables (--tile, --box, --line, --muted). */
.p-glance { margin: 6px 0 34px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.p-glance > .eyebrow { margin-bottom: 8px; }
.c-legal .p-glance h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.5px; }
.c-legal .p-glance p.p-lede { margin: 0 0 18px; max-width: 600px; font-size: 16px; color: var(--muted); }
.p-glance ul { margin: 0; padding: 0; list-style: none; }
.p-ico { flex: 0 0 auto; width: 22px; height: 22px; }

/* The switch between the app's two versions: the one from the App Store, and the free Mac download from this site.
   Two radio buttons drawn as one pill, like the comparison page's (compare.css). Whichever is checked decides what
   shows: a line marked data-edition belongs to one version and is hidden for the other, a line without it is true of
   both. The second rule is for a browser without :has(), where the page's script copies the choice onto the section. */
.p-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 26px; }
.p-pick { display: inline-flex; padding: 3px; border: 1.5px solid var(--p-pick-line); border-radius: 999px; background: var(--paper); }
.p-pick label { position: relative; display: inline-flex; }
.p-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.p-pick input:checked { cursor: default; }
.p-pick span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; }
.p-pick input:hover + span { background: var(--p-pick-hover); }
.p-pick input:checked + span { background: var(--p-fill); color: var(--p-on-fill); }
.p-pick input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.c-legal .p-glance p.p-pick-note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.p-glance:has(#p-pick-store:checked) [data-edition="direct"], .p-glance:has(#p-pick-direct:checked) [data-edition="store"] { display: none; }
.p-glance[data-show="store"] [data-edition="direct"], .p-glance[data-show="direct"] [data-edition="store"] { display: none; }

/* A. The map: your device on the left, a dashed line out to the only places anything can go. */
.p-map { --gap: 46px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: center; }
.p-device { position: relative; padding: 20px 20px 18px; border-radius: 10px; background: var(--p-fill); color: var(--p-on-fill); }
.p-device::after { content: ""; position: absolute; top: 50%; right: calc(var(--gap) / -2); width: calc(var(--gap) / 2); border-top: 2px dashed var(--p-wire); }
.p-device-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.c-legal .p-device p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: inherit; opacity: .9; }
.p-device li { position: relative; padding: 5px 0 5px 22px; font-size: 15px; line-height: 1.35; }
.p-device li::before { content: "✓"; position: absolute; left: 2px; top: 5px; font-weight: 700; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.p-chips li { padding: 3px 9px; border: 1px solid var(--p-chip-line); border-radius: 999px; font-size: 12px; font-weight: 700; }
.p-chips li::before { content: none; }

.p-dests { position: relative; }
.p-dests > li { position: relative; padding: 5px 0; }
/* The line runs down the gap and branches into each card. */
.p-dests > li::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 0; bottom: 0; border-left: 2px dashed var(--p-wire); }
.p-dests > li:first-child::before { top: 50%; }
.p-dests > li:last-child::before { bottom: 50%; }
.p-dests > li::after { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 50%; width: calc(var(--gap) / 2 - 4px); border-top: 2px dashed var(--p-wire); }
.p-dest { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); }
.p-dest::before { content: ""; position: absolute; left: -5px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--p-wire); }
.p-dest .p-ico { grid-row: span 3; margin-top: 1px; color: var(--green); }
.p-dest b { font-size: 15px; line-height: 1.3; }
.p-when { font-size: 12px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.c-legal .p-dest p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
/* The developer gets nothing automatically: the branch ends in a stop sign before the card. */
.p-dest.p-none { border-style: dashed; background: transparent; }
.p-dest.p-none::before { content: "✕"; left: -11px; width: 18px; height: 18px; margin-top: -9px; background: var(--paper); border: 2px solid var(--p-wire); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; }
.p-dest.p-none .p-ico, .p-dest.p-none .p-when { color: var(--muted); }
/* "Never" on the developer card (label and sentence) and on the device card: red, bold and in capitals.
   On the green device card a lighter red, so it can still be read, and underlined. */
.p-stress { color: var(--p-stress); font-weight: 700; text-transform: uppercase; }
.p-device .p-stress { color: var(--p-stress-on-fill); text-decoration: underline 2px currentColor; text-underline-offset: .18em; text-decoration-skip-ink: none; }

/* B. The label: three cards. */
.p-label { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.p-card { padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--tile); }
.c-legal .p-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; line-height: 1.3; }
.p-card h3::before { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.p-stays h3::before { content: "✓"; background: var(--p-fill); color: var(--p-on-fill); }
.p-choose h3::before { content: "→"; background: var(--box); color: var(--green); border: 1px solid var(--line); }
.p-never h3::before { content: "✕"; background: transparent; color: var(--muted); border: 1.5px solid var(--muted); }
.p-never { border-style: dashed; background: transparent; }
.p-card li { padding: 6px 0; border-top: 1px solid var(--soft-line); font-size: 14px; line-height: 1.4; }
.p-card li:first-child { border-top: 0; }

.cms-privacy { --p-fill: #124b30; --p-on-fill: #fdfaf3; --p-chip-line: #fdfaf380; --p-wire: #8fa58f; --p-pick-line: #789182; --p-pick-hover: rgba(22, 84, 52, .08); --p-stress: #b42318; --p-stress-on-fill: #ff8f80; }
@media screen and (prefers-color-scheme: dark) {
  .cms-privacy { --p-fill: var(--fill); --p-on-fill: var(--on-fill); --p-chip-line: #f6f3e670; --p-wire: #5f7a66; --p-pick-line: #4b5f50; --p-pick-hover: rgba(255, 255, 255, .06); --p-stress: #ff8f80; --p-stress-on-fill: #ffb3a7; }
}
@media (max-width: 760px) {
  .p-label { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* Phones: the device on top, the line running down the left into each card. */
  .p-map { --gap: 36px; grid-template-columns: minmax(0, 1fr); }
  .p-device::after { top: 100%; right: auto; left: 18px; width: 0; height: 18px; border-top: 0; border-left: 2px dashed var(--p-wire); }
  .p-glance ul.p-dests { margin-top: 18px; padding-left: var(--gap); }
  .p-dests > li::before { left: calc(18px - var(--gap)); }
  .p-dests > li:first-child::before { top: -18px; }
  .p-dests > li::after { left: calc(18px - var(--gap)); width: calc(var(--gap) - 18px - 4px); }
  .c-legal .p-glance h2 { font-size: 23px; }
  /* The pill takes the width, each half a 44 px target. The halves are equal unless a name needs more than its half
     (French "Téléchargement direct"), which then takes the room it needs from the other. */
  .p-pick { display: flex; width: 100%; }
  .p-pick label { flex: 1 1 0; }
  .p-pick span { width: 100%; min-height: 44px; padding: 4px 10px; }
}
@media (max-width: 359px) {
  /* Too narrow for some names on one line: back to equal halves, and a long name takes two lines. */
  .p-pick label { min-width: 0; }
  .p-pick span { white-space: normal; }
}
