/* Sidewave · Terms and Privacy. The brand's own reading page: the still sea at the top, its lower edge cut at 11° (the brand's one
   line), the title cut on the horizon; under it the deep, a reading column with numbered sections and an index beside it.
   Loads after shell.css (header / footer) and brand.css (the cut, --cut, the footer row). No green; no red. */
:root {
  --pl-navy: #040b18; --pl-text: #f3f6fa; --pl-text-2: #b4c1d3; --pl-text-3: #8494ab; --pl-line: rgba(255, 255, 255, .12);
  --pl-spray: #a7d6ed; --pl-ink: #071d43;
  --pl-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --pl-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --pl-gutter: clamp(16px, 3.4vw, 48px);
  --pl-mast: clamp(440px, 74vh, 760px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--pl-navy); color: var(--pl-text); font: 400 16px/1.6 var(--pl-font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--pl-spray); color: var(--pl-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--pl-spray); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--pl-text); color: var(--pl-ink); border-radius: 999px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ── The sea: sky, horizon glow, a dotted field toward the viewer; the lower edge is the 11° cut (rise 19.44vw across the width). ── */
.pl-sea {
  position: absolute; top: 0; left: 0; right: 0; height: var(--pl-mast); z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 40% at 50% 46%, rgba(93, 139, 208, .5) 0%, rgba(93, 139, 208, .14) 44%, rgba(93, 139, 208, 0) 72%),
    linear-gradient(180deg, #02060f 0%, #050f24 30%, #0a2652 45%, #061734 52%, #040d1f 72%, #030916 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.pl-sea::after {
  content: ""; position: absolute; left: -10%; right: -10%; top: 46%; bottom: 0;
  background-image: radial-gradient(circle, rgba(167, 214, 237, .55) 0 .7px, transparent 1.2px); background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .35) 10%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, .55) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .35) 10%, rgba(0, 0, 0, .9) 50%, rgba(0, 0, 0, .55) 100%);
  transform: perspective(600px) rotateX(55deg); transform-origin: 50% 0;
}
/* The cut itself, drawn: one bright line along the lower edge. */
.pl-sea::before {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; width: 102vw; height: 2px; transform-origin: 0 100%; transform: rotate(-11deg);
  background: linear-gradient(90deg, rgba(167, 214, 237, .15), rgba(167, 214, 237, .7) 40%, rgba(243, 246, 250, .95));
}

/* ── The masthead: the live sea (.ocean, fixed, /sw/ocean.js) seen through it; the title sheared on the horizon. ── */
.pl-mast { position: relative; z-index: 1; height: var(--pl-mast); max-width: 1440px; margin: 0 auto; padding: 0 var(--pl-gutter); display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--pl-mast) * .2); }
.pl-mast h1 { font-size: clamp(72px, 13.5vw, 216px); line-height: .86; font-weight: 600; letter-spacing: -.055em; color: var(--pl-text); filter: drop-shadow(0 8px 40px rgba(4, 11, 24, .55)); }
body[data-page="policy"] .pl-mast h1 { font-size: clamp(88px, 19vw, 300px); font-weight: 700; letter-spacing: -.065em; line-height: .84; }
.pl-date { margin-top: clamp(16px, 2.4vw, 28px); font-family: var(--pl-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-text-2); }
body[data-page="policy"] .pl-date { display: flex; flex-wrap: wrap; gap: 8px 28px; }
body[data-page="policy"] .pl-date a { color: var(--pl-text); border-bottom: 1px solid rgba(167, 214, 237, .5); padding-bottom: 2px; }
body[data-page="policy"] .pl-date a:hover { border-bottom-color: var(--pl-spray); }
/* No WebGL: the still sea of the fallback stays put behind the masthead. */
body[data-page="policy"] .ocean { z-index: 0; }

/* ── The reading panel: the deep rises over the sea, its top edge cut at 11° and drawn as one bright line. ── */
.pl-body { position: relative; z-index: 2; margin-top: calc(var(--cut) * -1); padding: calc(var(--cut) + clamp(24px, 4vw, 56px)) 0 clamp(96px, 12vw, 160px); background: var(--pl-navy); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.pl-body::before { content: ""; position: absolute; left: 0; top: var(--cut); width: 103vw; height: 2px; transform-origin: 0 0; transform: rotate(-11deg);
  background: linear-gradient(90deg, rgba(167, 214, 237, .15), rgba(167, 214, 237, .7) 40%, rgba(243, 246, 250, .95)); box-shadow: 0 0 18px 2px rgba(167, 214, 237, .35); }
.pl-inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--pl-gutter); display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

/* The index: a dial of the sections. Each has a bar that fills as it is read; the one being read lights. */
.pl-index { position: sticky; top: 96px; display: grid; gap: 2px; font-family: var(--pl-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pl-index a { position: relative; display: grid; grid-template-columns: 24px 1fr; align-items: baseline; column-gap: 12px; min-height: 40px; padding: 8px 0 10px; color: var(--pl-text-3); transition: color .25s ease; }
.pl-index a b { font-weight: 500; }
.pl-index a:hover, .pl-index a:focus-visible, .pl-index a[aria-current] { color: var(--pl-text); }
.pl-index .pl-no { color: var(--pl-spray); }
.pl-index .pl-bar { position: absolute; left: 36px; right: 0; bottom: 2px; height: 1px; background: var(--pl-line); }
.pl-index .pl-bar::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--r, 0)); background: var(--pl-spray); }
.pl-index a[aria-current] .pl-bar::after { background: var(--pl-text); box-shadow: 0 0 8px rgba(167, 214, 237, .8); }
.pl-index .pl-other { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--pl-line); color: var(--pl-text-2); }

/* A section: a huge hollow number beside it (sticky while it is read, filling from the bottom), its title sliding in along the
   11° line as it arrives, a rule drawn under the title. --p / --r come from /sw/policy.js; without it both are 1. */
.pl-copy { min-width: 0; }
.pl-section { --p: 1; --r: 1; display: grid; grid-template-columns: clamp(120px, 15vw, 230px) minmax(0, 720px); gap: clamp(20px, 3vw, 48px); padding: clamp(48px, 6vw, 96px) 0; scroll-margin-top: 88px; }
.pl-live .pl-section { --p: 0; --r: 0; }
.pl-big { position: relative; align-self: start; position: sticky; top: 104px; }
.pl-big span { display: block; font: 800 clamp(96px, 13vw, 210px)/.8 var(--pl-font); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px rgba(167, 214, 237, .42);
  background: linear-gradient(0deg, #f3f6fa calc(var(--r) * 100%), transparent calc(var(--r) * 100%)); -webkit-background-clip: text; background-clip: text;
  transform: translate(calc((1 - var(--p)) * -24px), calc((1 - var(--p)) * 30px)); opacity: calc(.25 + var(--p) * .75); }
.pl-text { position: relative; min-width: 0; padding-top: 6px; }
.pl-section h2 { display: grid; gap: 14px; margin-bottom: 26px; padding-bottom: 22px; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em;
  transform: translate(calc((1 - var(--p)) * -56px), calc((1 - var(--p)) * 10.9px)); opacity: var(--p); }
.pl-section h2 { position: relative; }
.pl-section h2::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1px; background: linear-gradient(90deg, var(--pl-spray), rgba(167, 214, 237, 0)); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.pl-section h2 .pl-no { font-family: var(--pl-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--pl-spray); }
.pl-section p { max-width: 62ch; font-size: 18px; line-height: 1.72; color: var(--pl-text-2); overflow-wrap: anywhere; opacity: calc(.35 + var(--p) * .65); }
.pl-section p:first-of-type { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--pl-text); }
.pl-section p + p { margin-top: 16px; }
.pl-section a { color: var(--pl-text); text-decoration: underline; text-decoration-color: rgba(167, 214, 237, .6); text-underline-offset: 4px; }
.pl-section a:hover { text-decoration-color: var(--pl-spray); }
.pl-contact { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--pl-line); }

/* Footer: the home page's row, in flow. */
.sh-foot--sea { position: relative; z-index: 2; border-top: 1px solid var(--pl-line); padding-top: 28px; background: var(--pl-navy); }
.sh-foot-links a[aria-current="page"] { color: var(--sh-fg, #f3f6fa); }

@media (max-width: 960px) {
  .pl-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pl-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-bottom: 16px; }
  .pl-index .pl-other { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; }
}
@media (max-width: 860px) {
  :root { --pl-mast: clamp(380px, 62vh, 560px); }
  .pl-mast { padding-top: calc(var(--pl-mast) * .26); }
  .pl-section { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 44px 0; }
  .pl-big { position: relative; top: 0; margin-bottom: 10px; }
  .pl-section h2 .pl-no { display: none; }
  .pl-big span { font-size: 112px; }
  .pl-section p { font-size: 16px; }
  .pl-section p:first-of-type { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pl-section { --p: 1 !important; --r: 1 !important; } }

/* The 404: the sea fills the screen, the line on the horizon, one way home. */
.pl-sea--full, .pl-mast--full { --pl-mast: 100svh; }
.pl-mast--full h1 { font-size: clamp(48px, 9vw, 144px); }
.pl-mast--full .pl-date a { color: var(--pl-text); border-bottom: 1px solid rgba(167, 214, 237, .6); padding-bottom: 4px; }
.pl-mast--full .pl-date a:hover { border-bottom-color: var(--pl-spray); }
