/* 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 22px; 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; }

/* A. The map: your device on the left, a dashed line out to the only four 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); }

/* 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; }
@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; }
}
@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; }
}
