/* shared shell for the policy pages */
body.legal{background:var(--paper);color:var(--ink)}

/* the same arrival wipe the rest of the site uses, driven by class swaps rather
   than GSAP. it only ever covers the page when scripting is alive to lift it. */
body.legal .wipe{transition:clip-path .7s var(--inout)}
html.js body.legal .wipe{clip-path:inset(0 0 0 0)}
html.js body.legal .wipe.up{clip-path:inset(0 0 100% 0)}
html.js body.legal .wipe.cover{clip-path:inset(0% 0 0 0)}
.legal .lr{opacity:0;transform:translateY(20px);
  transition:opacity .8s var(--out),transform .8s var(--out)}
.legal .lr.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html.js body.legal .wipe{display:none}
  .legal .lr{opacity:1;transform:none;transition:none}
}
.legal-wrap{width:min(760px,88vw);margin-inline:auto;
  padding:calc(9svh + 4rem) 0 12vh}
.legal-top{display:flex;align-items:center;justify-content:space-between;
  gap:1.5rem;margin-bottom:3rem}
.legal-back{display:inline-flex;align-items:center;gap:.7rem;
  font-size:.68rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;
  color:var(--slate);text-decoration:none;
  transition:color .3s var(--out)}
.legal-back:hover{color:var(--gold)}
.legal .langsw button,.legal .langsw i{color:var(--ink)}
.legal h1{font-family:var(--serif);font-weight:400;font-size:clamp(2rem,4.4vw,3.2rem);
  line-height:1.1;letter-spacing:-.02em}
.legal .stamp{font-size:.66rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--slate);margin-top:1.2rem;padding-bottom:1.6rem;
  border-bottom:1px solid var(--hair)}
.legal h2{font-family:var(--serif);font-weight:400;font-size:clamp(1.2rem,2vw,1.6rem);
  line-height:1.2;margin:2.8rem 0 .9rem}
.legal p,.legal li{color:#46536B;font-size:1.02rem;line-height:1.75}
.legal p+p{margin-top:1rem}
.legal ul{list-style:none;margin-top:1rem;display:flex;flex-direction:column;gap:.7rem}
.legal li{padding-left:1.4rem;position:relative}
.legal li::before{content:'';position:absolute;left:0;top:.85rem;width:6px;height:6px;
  border-radius:50%;background:var(--gold);opacity:.7}
.legal a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--gold)}
.legal a:hover{color:var(--gold)}
.legal-note{margin-top:3.5rem;padding-top:1.6rem;border-top:1px solid var(--hair);
  font-size:.9rem;color:var(--slate)}
.legal-foot{border-top:1px solid var(--hair);padding:2rem 0;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;
  font-size:.82rem;color:var(--slate)}
.legal-foot a{color:var(--slate);text-decoration:none;border:0}
.legal-foot a:hover{color:var(--gold)}

/* the Trace page */
body.tracepage{background:var(--ink);color:var(--paper)}
.tracepage .nav .wordmark,.tracepage .nav .menu-btn{color:var(--paper)}
.tracepage .nav .bars i{background:var(--paper)}
.tracepage .nav .bars i:nth-child(3){background:var(--gold)}
.tp{padding:calc(10svh + 3rem) 0 12vh}
.tp-in{width:min(1000px,88vw)}
.tp-h{font-family:var(--serif);font-weight:400;font-size:clamp(2rem,4.4vw,3.5rem);
  line-height:1.06;letter-spacing:-.025em;color:var(--paper);margin-top:1.1rem}
.tp-sub{color:#94A2B4;font-size:1.05rem;line-height:1.7;margin-top:1.6rem;max-width:60ch}
.tp-head .eyebrow{color:#7A8798}
.tp-form{margin-top:clamp(3rem,8vh,5rem)}
.tp-set{border:0;padding:0;margin-bottom:clamp(2.5rem,6vh,4rem)}
.tp-set legend{display:flex;align-items:baseline;gap:1rem;width:100%;
  font-size:.66rem;letter-spacing:.3em;text-transform:uppercase;color:#7A8798;
  padding-bottom:1.1rem;margin-bottom:1.8rem;border-bottom:1px solid rgba(248,250,252,.14)}
.tp-set legend span{font-family:var(--serif);font-size:1.5rem;letter-spacing:0;color:var(--gold)}
.tp-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.9rem 2.2rem;align-items:end}
.tp-setnote{color:#7A8798;font-size:.85rem;margin:-1rem 0 1.8rem}
/* the honeypot. `display:none` is the one thing a modern bot checks for, so it
   is taken out of flow and pushed off-screen instead */
.tp-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.tp-foot{display:flex;align-items:center;gap:2rem;flex-wrap:wrap;
  margin-top:clamp(2rem,5vh,3rem)}
.tp-note{color:#7A8798;font-size:.88rem;max-width:42ch}
.tp-done{padding-top:6vh;max-width:60ch}
.tp-done .btn{margin-top:2rem}

/* rolling lists: native select, so a phone gets its own picker, dressed to
   match the underlined fields. the chevron is inline, nothing is fetched. */
.tf select{display:block;width:100%;padding:.85rem 2rem .85rem 0;border:0;
  border-bottom:1px solid rgba(248,250,252,.2);background:none;font:inherit;
  font-size:1rem;color:var(--paper);border-radius:0;cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23C7A86D' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .25rem center;
  transition:border-color .35s var(--out)}
.tf select:focus{outline:none;border-bottom-color:var(--gold)}
.tf.bad select{border-bottom-color:#C86D6D}
/* the popup is painted by the OS, so the ground has to be stated on the options */
.tf select option{background:var(--ink);color:var(--paper)}
.tf select:invalid,.tf select.empty{color:#59667A}

/* these are questions, not field labels, so they are set to be read rather than
   as letterspaced micro-caps. seventeen of those would be punishing. */
.tp-form .tf>span,.tp-form .tf-set legend{
  font-size:.95rem;letter-spacing:0;text-transform:none;color:#B4C0CE;
  line-height:1.45;margin-bottom:.35rem;text-wrap:pretty}

/* a revealed "which one" field, shown only when Other is chosen. it takes the
   full row so it reads as belonging to the select above it, not to the column. */
.tf-other{grid-column:1/-1}
.tf-other[hidden]{display:none}

/* checkbox group */
.tf-set{border:0;padding:0;margin:0;min-width:0}
.tf-set legend{display:block;font-size:.62rem;letter-spacing:.26em;
  text-transform:uppercase;color:#7A8798;margin-bottom:1rem;
  padding:0;border:0;width:auto}
/* a checklist, not pills: rows you tick down, each on its own hairline */
.tp-checks{display:grid;grid-template-columns:1fr 1fr;gap:0 2.2rem;
  border-top:1px solid rgba(248,250,252,.1)}
.chk{position:relative;display:flex;align-items:center;gap:.95rem;cursor:pointer;
  padding:.95rem 0;font-size:.98rem;color:#A8B4C4;
  border-bottom:1px solid rgba(248,250,252,.1);
  transition:color .3s var(--out)}
.chk input{position:absolute;opacity:0;width:0;height:0}
/* the box */
.chk::before{content:'';flex:0 0 auto;width:19px;height:19px;border-radius:3px;
  box-shadow:inset 0 0 0 1px rgba(248,250,252,.32);
  transition:background .28s var(--out),box-shadow .28s var(--out)}
/* the tick, drawn rather than fetched */
.chk::after{content:'';position:absolute;left:5px;top:50%;width:9px;height:5px;
  border-left:1.8px solid var(--ink);border-bottom:1.8px solid var(--ink);
  transform:translateY(-72%) rotate(-45deg) scale(.5);transform-origin:center;
  opacity:0;transition:opacity .2s var(--out),transform .28s var(--out)}
.chk:hover{color:var(--paper)}
.chk:hover::before{box-shadow:inset 0 0 0 1px rgba(248,250,252,.55)}
.chk:has(input:checked){color:var(--paper)}
.chk:has(input:checked)::before{background:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.chk:has(input:checked)::after{opacity:1;transform:translateY(-72%) rotate(-45deg) scale(1)}
.chk:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}

@media (max-width:720px){
  .tp-grid{grid-template-columns:1fr}
  .tp-checks{grid-template-columns:1fr}
  .chk{font-size:.94rem}
}
