/* Legal pages (privacy): slim title band with the pour ribbon, then the notice beside a sticky contents list. */

.p-band { position: relative; min-height: 32vh; padding: calc(var(--head-h) + clamp(28px, 4vh, 48px)) 0 0; background: var(--paper); overflow: clip; isolation: isolate; display: flex; flex-direction: column; }
.p-band__inner { flex: 1; padding-bottom: clamp(24px, 3.4vh, 40px); }
.p-band h1 { margin-bottom: .22em; }
.p-band .lede { margin: 0; max-width: 120ch; }
.p-band .ribbon { flex: none; height: clamp(26px, 3.4vw, 44px); }
.p-band__daisy { position: absolute; z-index: -1; right: clamp(-90px, -4vw, -30px); top: calc(var(--head-h) - 40px); width: clamp(220px, 26vw, 400px); height: auto; opacity: .1; pointer-events: none; }
.p-band__daisy .daisy__petals { fill: var(--teal); }
.p-band__daisy .daisy__heart { fill: var(--gold); }
.p-band__daisy .daisy__spin { animation: dc-spin 60s linear infinite; }

.p-body { padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 8vw, 110px); background: var(--paper); overflow: clip; }
.p-body::before { /* a faint wash of the mist surface behind the text column */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 72%; background: linear-gradient(90deg, transparent, var(--mist) 22%); pointer-events: none; z-index: 0;
}
.p-body::after { /* the title band's pour ribbon carries on down the right edge, still flowing */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: clamp(10px, 1.1vw, 16px); z-index: 0; pointer-events: none;
  background: url("../img/pour-fill.webp") 30% 0 / auto 130% no-repeat; animation: p-ribbon 26s linear infinite alternate;
}
@keyframes p-ribbon { to { background-position: 70% 100%; } }
.p-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }

.p-aside { position: sticky; top: calc(var(--head-h) + 24px); }
.p-aside__inner { position: relative; padding: 26px 24px 24px; background: #fff; border-radius: var(--r-one); box-shadow: 0 24px 50px -34px rgba(27, 12, 23, .45), 0 0 0 1px var(--line); }
.p-aside__daisy { position: absolute; right: -18px; top: -20px; width: 54px; height: 54px; }
.p-aside__daisy .daisy__petals { fill: #fff; stroke: var(--ink); stroke-width: .8; }
.p-aside__daisy .daisy__heart { fill: var(--gold); }
.p-aside__daisy .daisy__spin { animation: dc-spin 12s linear infinite; }
.p-aside__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 560; font-size: 1.3rem; font-variation-settings: "SOFT" 100, "opsz" 36; }
.p-toc { position: relative; padding-left: 18px; }
.p-toc__track { position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.p-toc__fill { position: absolute; inset: 0; background: url("../img/pour-fill.webp") 50% 0 / 600% auto; transform: scaleY(0); transform-origin: top; animation: p-flow 14s linear infinite alternate; }
.p-toc__track { width: 5px !important; }
@keyframes p-flow { to { background-position: 50% 100%; } }
.p-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-toc__list a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .98rem; transition: color .3s, transform .4s var(--ease); }
.p-toc__list a:hover, .p-toc__list a:focus-visible { color: var(--ink); transform: translateX(4px); }
.p-toc__list a.is-current { color: var(--rasp); font-weight: 650; transform: translateX(4px); }
.p-aside__ask { margin-top: 20px; width: 100%; }

.p-text { max-width: 120ch; }
.p-part { position: relative; padding: 0 0 clamp(26px, 3vw, 38px); margin: 0 0 clamp(26px, 3vw, 38px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 30px); }
.p-part:last-child { border-bottom: 0; margin-bottom: 0; }
.p-part h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.45rem, 1.9vw, 1.9rem); margin-bottom: .45em; }
.p-part h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(216, 164, 44, .2); transition: transform .5s var(--ease), background .4s; }
.p-part.is-current h2::before { background: var(--rasp); transform: scale(1.25); animation: p-pulse 2.2s ease-out infinite; }
@keyframes p-pulse { from { box-shadow: 0 0 0 0 rgba(181, 55, 90, .45); } to { box-shadow: 0 0 0 14px rgba(181, 55, 90, 0); } }
.p-part p, .p-part li { font-size: 1.06rem; line-height: 1.7; }
.p-part p:last-child { margin-bottom: 0; }
.p-part a { color: var(--teal); font-weight: 600; }
.p-list { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 6px; }
.p-list li { position: relative; padding-left: 26px; }
.p-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--rasp); }
.p-date { display: inline-block; margin-top: 10px !important; padding: 8px 16px; border-radius: var(--r-one-sm); background: var(--paper); font-weight: 650; font-size: .95rem !important; }

@media (max-width: 900px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-aside { position: relative; top: 0; }
  .p-body::before { width: 100%; background: linear-gradient(180deg, transparent, var(--mist) 30%); }
  .p-toc__list { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}
@media (max-width: 480px) {
  .p-toc__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .p-body::after, .p-band__daisy .daisy__spin, .p-aside__daisy .daisy__spin, .p-toc__fill, .p-part.is-current h2::before { animation: none; }
}
