.law-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, .42fr) minmax(0, 1.18fr);
  align-items: center;
  gap: .6rem;
  margin: .9rem 0;
  text-align: center;
}
.law-stage { min-width: 0; padding: .65rem; }
.law-stage h3, .law-stage p, .law-lane h3, .law-lane p { margin: 0; }
.law-stage img, .law-lane img { display: block; width: 5.8rem; height: auto; margin-inline: auto; }
.law-drawing-arrow { display: grid; justify-items: center; gap: .22rem; color: #155651; font-size: .9rem; font-weight: 700; }
.law-drawing-arrow::after { content: ""; width: min(100%, 3.6rem); height: 1.15rem; background: #155651; clip-path: var(--diagram-step-arrow); }
.law-note { padding: .42rem .7rem; margin-block: .55rem 0; background: var(--mint); border-inline-start: 3px solid #155651; }
.law-note-caution { background: var(--pink); border-color: var(--wine); }
.law-receipt { width: fit-content; margin: 0 auto .48rem; padding: .42rem .85rem; border: 2px solid var(--ink); border-radius: 3px 5px 7px 4px; box-shadow: 3px 3px #e8ba57; background: #fffaf0; text-align: left; }
.law-receipt > span { display: block; }
.law-receipt small { display: block; border-bottom: 1px dashed #998d73; font-weight: 700; }
.law-records { width: min(100%, 21rem); margin: .45rem auto; overflow: hidden; border: 2px solid var(--ink); border-radius: .5rem .5rem .32rem .32rem; background: #fffaf0; }
.law-records table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.law-records :is(th,td) { padding: .18rem .5rem; border-bottom: 1px solid #d9cbb3; }
.law-records thead { background: var(--yellow); }
.law-records tr:last-child td { border-bottom: 0; }
.law-records tbody tr:first-child { background: var(--mint); }
.law-lanes { display: grid; gap: .38rem; margin: .75rem 0; }
.law-lane { display: grid; grid-template-columns: 5.35rem minmax(0, 1fr) minmax(4.6rem, .36fr) minmax(0, 1.12fr); align-items: center; gap: .6rem; border-bottom: 1px solid #b8a78c; padding: .22rem .35rem; }
.law-lane > :last-child { padding: .3rem .48rem; background: var(--mint); }
.law-lane-warning > :last-child { background: var(--pink); }
.law-decision-lanes .law-lane { grid-template-columns: 5.35rem minmax(0, 1fr) minmax(7rem, .65fr) minmax(0, 1.55fr); }
.law-decision-lanes .law-lane > div:last-child { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.law-decision-lanes .law-lane img { width: min(100%, 5.25rem); }
.law-decision-lanes .law-lane h4 { margin: 0; font-size: 1rem; }
.law-decision-lanes .law-lane > .law-drawing-arrow { text-align: center; }
.law-decision-lanes .law-lane > .law-drawing-arrow::after { width: min(100%, 4.8rem); }
.law-conditions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .6rem; margin: .6rem 0; }
.law-conditions strong { padding: .22rem .55rem; border-bottom: 2px solid var(--ink); background: var(--yellow); }
.law-steps { counter-reset: law-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem; padding: 0; margin: .8rem 0; list-style: none; }
.law-step { position: relative; padding: .25rem .42rem .5rem; border-bottom: 2px solid #bcaa8f; text-align: center; }
.law-step img { display: block; width: 5.5rem; height: auto; margin: 0 auto; }
.law-step::before { counter-increment: law-step; content: counter(law-step); position: absolute; inset: .4rem auto auto 0; display: grid; place-items: center; width: 1.55rem; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-weight: 800; }
.law-step:not(:last-child)::after { content: ""; position: absolute; inset: 36% auto auto calc(100% + .08rem); width: 1.38rem; height: 1rem; background: #155651; clip-path: var(--diagram-step-arrow); }
.privacy-record-fork { display: grid; grid-template-columns: minmax(8.6rem, .24fr) 1fr; align-items: center; gap: .35rem; margin-top: .75rem; }
.privacy-record-fork > .law-receipt { width: 100%; margin: 0; }
.privacy-record-paths { position: relative; display: grid; gap: .55rem; padding-left: 1.7rem; }
.privacy-record-paths::before { content: ""; position: absolute; inset: 25% auto 24% .45rem; width: .85rem; border: 3px solid #155651; border-right: 0; border-radius: .55rem 0 0 .55rem; }
.privacy-record-paths::after { content: ""; position: absolute; inset: 50% auto auto 0; width: .62rem; border-top: 3px solid #155651; }
.privacy-record-path { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: .55rem; padding: .4rem .55rem; border-bottom: 1px solid #b8a78c; }
.privacy-record-path::before { content: ""; position: absolute; inset: calc(50% - .27rem) auto auto -.69rem; width: .68rem; height: .6rem; background: #155651; clip-path: var(--diagram-step-arrow); }
.privacy-record-path h3, .privacy-record-path p { margin: 0; }
.privacy-record-path > p { background: var(--mint); padding: .4rem .55rem; }
.privacy-record-pieces { display: flex; align-items: center; gap: .35rem; margin-block: .3rem; }
.privacy-record-pieces .law-receipt { margin: 0; padding: .25rem .45rem; white-space: nowrap; }
.privacy-record-key { padding: .25rem .4rem; border: 1px dashed #8a7451; border-radius: .25rem; background: #e2eee6; font-size: .89rem; }
.privacy-record-key :is(span,b) { display: block; }
@media (max-width: 650px) {
  .law-story { grid-template-columns: 1fr; }
  .law-story > .law-drawing-arrow::after { width: 1.4rem; rotate: 90deg; }
  .law-lane { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .law-lane > .law-drawing-arrow { display: none; }
  .law-lane > :last-child { grid-column: 2; }
  .law-decision-lanes .law-lane { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .law-decision-lanes .law-lane > .law-drawing-arrow { display: grid; grid-column: 2; justify-items: start; }
  .law-decision-lanes .law-lane > .law-drawing-arrow::after { width: 1.3rem; rotate: 90deg; margin: .25rem; }
  .law-decision-lanes .law-lane > div:last-child { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .law-decision-lanes .law-lane img { width: min(100%, 3.4rem); }
  .law-steps { grid-template-columns: 1fr; }
  .law-step:not(:last-child)::after { inset: calc(100% + .28rem) auto auto calc(50% - .55rem); rotate: 90deg; }
  .privacy-record-fork, .privacy-record-path { grid-template-columns: 1fr; }
  .privacy-record-fork > .law-receipt { width: fit-content; }
  .privacy-record-paths { padding-left: .6rem; border-left: 2px solid #155651; }
  .privacy-record-paths::before, .privacy-record-paths::after { display: none; }
}
