/* /your-data-rights/: "How it works under the hood". Static layers that work without JS; rights-flow.js adds the pulse and the tilt.
   Colours come from the shared theme variables, so light and dark follow the site. Tilt only on wide screens with motion allowed. */
.rf-sec { padding-top: 0; }
.rf-title { color: var(--a-navy, var(--ink)); font-size: clamp(1.35rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 .5em; }
.rf-lede { max-width: 40em; color: var(--muted); margin: 0 0 1.4em; }
.rf-stage { perspective: 1400px; padding: 8px 0 24px; }
.rf-layers { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; transform-style: preserve-3d; }
.rf-layer { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; align-items: start; margin: 0 0 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.rf-layer:last-child { margin-bottom: 0; }
.rf-layer::after { content: ''; position: absolute; left: 34px; bottom: -17px; width: 2px; height: 16px; background: var(--line-strong); }
.rf-layer:last-child::after { display: none; }
.rf-n { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line-strong); }
.rf-h { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.rf-cap { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.5; }
.rf-tag { font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--bg-alt); }
.rf-layer.is-lit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.rf-layer.is-lit::after { background: var(--accent); }
.rf-layer.is-lit .rf-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.rf-layer.is-lit .rf-tag { border-color: var(--accent); color: var(--accent); background: transparent; }
:root[data-theme="dark"] .rf-layer.is-lit .rf-tag { color: #FF8A8D; border-color: #FF8A8D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rf-layer.is-lit .rf-tag { color: #FF8A8D; border-color: #FF8A8D; } }
.rf-mock { grid-column: 2; margin-top: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.rf-mock-bar { display: flex; gap: 6px; align-items: center; padding: 7px 10px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.rf-mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.rf-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.rf-row b { color: var(--ink); }
.rf-sw { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; font: inherit; color: var(--text); border-radius: 999px; }
.rf-sw:focus-visible, .rf-replay:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rf-track { width: 44px; height: 24px; border-radius: 999px; background: var(--fill); position: relative; transition: background .2s; }
.rf-track::after { content: ''; position: absolute; top: 3px; left: 23px; width: 18px; height: 18px; border-radius: 50%; background: var(--on-fill); transition: left .2s; }
.rf-sw[aria-checked="false"] .rf-track { background: var(--line-strong); }
.rf-sw[aria-checked="false"] .rf-track::after { left: 3px; background: #fff; }
.rf-state { min-width: 2.2em; font-weight: 700; }
.rf-note { margin: 10px auto 0; max-width: 640px; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rf-replay { font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.rf-replay[hidden] { display: none; }
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .rf-layers { transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -12deg)); will-change: transform; }
  .rf-layer { transform: translateZ(calc(var(--i, 0) * -36px)) translateX(calc(var(--i, 0) * 16px)); }
}
@media (max-width: 820px) { .rf-stage { perspective: none; } .rf-layer { padding: 14px; } }
@media (max-width: 400px) { .rf-layer { grid-template-columns: 28px 1fr; gap: 4px 10px; } .rf-n { width: 28px; height: 28px; } .rf-layer::after { left: 28px; } .rf-row { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .rf-layer, .rf-track, .rf-track::after { transition: none; } }
