/* RJG Mediaworks: privacy policy and website terms. Needs ../site.css and article.css (reading line, contents list, prose).
   Adds: calmer hero, long-form text styles, the "Draft" tag, and the privacy "where your information goes" diagram. */

/* ============================== hero ============================== */
.phero--legal { padding-bottom: clamp(40px, 5vw, 72px); }
.phero--legal .phero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.phero--legal .phero__h1 { font-size: clamp(44px, 6vw, 96px); }
.phero--legal .phero__art { aspect-ratio: 1 / 1; max-width: 300px; }
.tag--draft { gap: 8px; height: 26px; padding: 0 12px; border-color: rgba(198, 244, 50, .45); color: rgba(245, 245, 244, .85); }
.tag--draft::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.phero--legal .ameta li + li::before { display: none; }
.phero--legal .ameta { gap: 10px 18px; align-items: center; }

/* ============================== long-form text ============================== */
.legal > h2 { margin-top: clamp(44px, 5.4vw, 68px); font: 500 clamp(24px, 2.5vw, 33px)/1.1 var(--sans); letter-spacing: -.035em; }
.legal > h2 + p { margin-top: 18px; }
.legal > .take + .flow, .legal > .flow + h2 { margin-top: clamp(32px, 4vw, 48px); }
.legal > .take + h2 { margin-top: clamp(44px, 5.4vw, 68px); }
.legal > ul { display: grid; gap: 10px; margin-top: 16px; }
.legal > ul li { position: relative; padding-left: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: rgba(245, 245, 244, .78); }
.legal > ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 11px; height: 1.5px; background: var(--muted); }
.legal > ul li b { font-weight: 500; color: #fff; }
.legal > p a { border-bottom: 1px solid var(--line-2); color: #fff; transition: border-color .3s; }
.legal > p a:hover { border-color: var(--lime); }
.legal .h2n { margin-bottom: 12px; }

/* ============================== privacy diagram ============================== */
.flow { margin: clamp(28px, 3.4vw, 40px) 0 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.flow__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.flow__nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: clamp(24px, 3vw, 36px) clamp(8px, 1.6vw, 20px) clamp(14px, 2vw, 22px); }
.flow__li { position: relative; display: flex; justify-content: center; }
.flow__li:not(:last-child)::before, .flow__li:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: calc(50% + 42px); right: calc(-50% + 42px); height: 1px; }
.flow__li:not(:last-child)::before { background: var(--line-2); }
.flow__li:not(:last-child)::after { background: var(--lime); box-shadow: 0 0 10px rgba(198, 244, 50, .55); transform: scaleX(0); transform-origin: left; }
.flow__li.is-past::after { transform: scaleX(1); }
html[data-motion="on"] .flow__li:not(:last-child)::after { transition: transform .7s var(--ease); }
.fnode { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 150px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: inherit; }
.fnode__ic { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-2); color: rgba(245, 245, 244, .6); transition: border-color .4s, color .4s, box-shadow .5s, transform .5s var(--ease); }
.fnode__ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fnode:hover .fnode__ic { color: #fff; border-color: rgba(255, 255, 255, .5); }
.fnode[aria-pressed="true"] .fnode__ic { color: #fff; border-color: var(--lime); box-shadow: 0 0 0 5px rgba(198, 244, 50, .1), 0 0 26px rgba(198, 244, 50, .28); transform: translateY(-2px); }
.flow__li.is-past .fnode__ic { color: rgba(245, 245, 244, .85); border-color: rgba(255, 255, 255, .4); }
.fnode__t { font: 500 16px/1.2 var(--sans); letter-spacing: -.02em; color: #fff; }
.fnode__s { font: 400 10.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fnode:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: 14px; }
.flow__detail { min-height: 3.6em; margin: 0; padding: 18px clamp(18px, 2.4vw, 28px) 22px; border-top: 1px solid var(--line); font: 400 13px/1.6 var(--mono); letter-spacing: -.005em; color: rgba(245, 245, 244, .85); }
.flow__detail::before { content: "> "; color: var(--lime); }

/* ============================== responsive ============================== */
@media (max-width: 899px) {
  .phero--legal .phero__grid { grid-template-columns: 1fr; }
  .phero--legal .phero__art { max-width: 240px; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .flow__nodes { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px 18px; }
  .flow__li { justify-content: flex-start; }
  .fnode { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; gap: 0 16px; text-align: left; }
  .fnode__ic { width: 56px; height: 56px; margin: 0; }
  .fnode__t { flex: 1 1 calc(100% - 80px); }
  .fnode__s { flex: 1 1 calc(100% - 80px); margin-left: 72px; margin-top: -26px; }
  .flow__li:not(:last-child)::before, .flow__li:not(:last-child)::after { top: 58px; bottom: -22px; left: 28px; right: auto; width: 1px; height: auto; }
  .flow__li:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
  .flow__li.is-past::after { transform: scaleY(1); }
}
html[data-motion="off"] .fnode__ic, html[data-motion="off"] .flow__li::after { transition: none; }
