/* Legal Stuff = a stapled, photocopied contract; the "sign here" flags sticking out of its edge are the tabs.  Every class starts with lg-. */
.lg-sec{padding-top:56px;padding-bottom:0!important}
/* our legal team, on the footer line */
.lg-band{position:relative;display:block;width:min(520px,92vw);height:auto;margin:72px auto 0}
.lg{position:relative;width:min(860px,100%);margin:14px auto 0}
/* the other pages of the stack, peeking out underneath */
/* (no rotating: these sheets get thousands of pixels tall, and a half degree would push them off the screen) */
.lg-stack{position:absolute;inset:0;filter:drop-shadow(0 14px 26px rgba(0,0,0,.8))}
.lg-stack::before,.lg-stack::after{content:"";position:absolute;inset:5px -7px -7px -6px;background:#d3cdbf;clip-path:polygon(5px 6px,100% 0,calc(100% - 8px) 100%,0 calc(100% - 5px))}
.lg-stack::after{inset:3px -4px -4px -2px;background:#e1dbce;clip-path:polygon(0 0,calc(100% - 4px) 4px,100% 100%,5px calc(100% - 3px))}
.lg-sheet{position:relative;padding:64px 76px 52px;color:#161616;background-color:#efebe2;box-shadow:0 2px 8px rgba(0,0,0,.35);
  background-image:linear-gradient(90deg,rgba(0,0,0,.05),transparent 3%,transparent 98%,rgba(0,0,0,.05)),linear-gradient(90deg,transparent 0 71.2%,rgba(0,0,0,.022) 71.3% 71.5%,transparent 71.6%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.lg-staple{position:absolute;left:26px;top:30px;width:44px;height:5px;border-radius:2px;transform:rotate(-38deg);background:linear-gradient(180deg,#f3f5f6,#9aa1a7 55%,#5f656b);box-shadow:0 2px 2px rgba(0,0,0,.45)}
.lg-name{font:400 34px/1.12 var(--display);letter-spacing:-.02em;margin-bottom:6px}
.lg-date{font:400 16px/1.4 var(--label)!important;margin:0 0 22px!important;padding-bottom:18px;border-bottom:2px solid #161616}
.lg-part{font:400 26px/1.15 var(--display);letter-spacing:-.02em;margin:46px 0 8px}
.lg-name+.lg-part,.lg-stamp+.lg-part{margin-top:14px}
.lg-sheet h4{font:400 20px/1.25 var(--label);margin:30px 0 8px}
.lg-sheet p{font:400 16.5px/1.65 var(--body);margin:0 0 12px}
.lg-sheet ul{margin:0 0 14px;padding-left:22px}
.lg-sheet li{font:400 16.5px/1.6 var(--body);margin-bottom:7px}
.lg-sheet a{text-underline-offset:3px}
.lg-sheet a:hover{text-decoration-thickness:2px}
.lg-small{font:400 14px/1.6 var(--label)!important;text-align:center;margin:44px 0 0!important;padding-top:18px;border-top:1px solid rgba(20,20,20,.5)}
.lg-small a{white-space:nowrap}
/* somebody at the copy shop had a stamp */
.lg-stamp{position:absolute;right:58px;top:50px;padding:9px 14px 5px;border:3px solid #a3161d;border-radius:5px;color:#a3161d;font:400 18px/1.1 var(--label);letter-spacing:.06em;text-transform:uppercase;text-align:center;transform:rotate(7deg);mix-blend-mode:multiply;opacity:.85;pointer-events:none}

/* ---- the "sign here" flags: they ride along as you read ---- */
.lg-flags{position:absolute;z-index:3;left:100%;top:0;bottom:0;width:0}
.lg-flag{--c:#d8323a;position:sticky;top:calc(150px + var(--i)*62px);display:flex;align-items:center;gap:9px;width:max-content;height:46px;margin-left:-34px;padding:2px 16px 0 10px;color:#141414;text-decoration:none;font:400 16px/1 var(--label);
  background:linear-gradient(90deg,color-mix(in srgb,var(--c) 34%,#efebe2) 0 24px,var(--c) 24px);box-shadow:0 2px 5px rgba(0,0,0,.45);transition:margin-left .16s,padding-left .16s}
.lg-flag svg{width:11px;height:13px;fill:#141414;flex:none;margin:-2px 8px 0 0}
.lg-flag+.lg-flag{margin-top:16px}
.lg-f1{--i:0;--c:#f2c230;margin-top:118px}.lg-f2{--i:1;--c:#ee6a5f}.lg-f3{--i:2;--c:#7fb8e6}
.lg-flag:hover{margin-left:-28px}
.lg-flag.lg-on{margin-left:-48px;padding-left:24px;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.lg-flag:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* not enough room beside the sheet: the flags stick out of its top edge */
@media (max-width:1240px){
  .lg{margin-top:62px}
  .lg-flags{position:relative;left:auto;top:auto;bottom:auto;width:auto;display:flex;gap:10px;padding:0 26px;height:0;z-index:0}
  .lg-flag,.lg-flag:hover{position:relative;top:-48px;margin:0!important;height:58px;padding:0 14px 8px;background:linear-gradient(0deg,color-mix(in srgb,var(--c) 34%,#efebe2) 0 14px,var(--c) 14px)}
  .lg-flag svg{display:none}
  .lg-flag:hover{top:-52px}
  .lg-flag.lg-on{top:-54px;height:74px;padding:0 14px 20px;z-index:1}
}
@media (max-width:860px){.lg-sec{padding-top:44px}.lg-sheet{padding:58px 40px 40px}}
@media (max-width:780px){.lg-stamp{position:static;display:block;width:max-content;margin:2px 4px 14px auto;font-size:15px;transform:rotate(4deg)}}
@media (max-width:600px){
  .lg-stack::before{inset:4px -4px -6px -4px}.lg-stack::after{inset:2px -2px -3px -2px}
  .lg{width:calc(100% + 16px);margin:60px -8px 0}
  .lg-sheet{padding:52px 22px 34px}.lg-name{font-size:27px}.lg-part{font-size:23px}
  .lg-flags{gap:6px;padding:0 10px}.lg-flag{flex:1 1 auto;justify-content:center;text-align:center;font-size:14.5px;padding-left:8px!important;padding-right:8px!important;width:auto}
  .lg-staple{left:16px;top:22px}
}
@media (max-width:380px){.lg-flag{font-size:13px;padding-left:5px!important;padding-right:5px!important}}
@media (prefers-reduced-motion:reduce){.lg-flag{transition:none}}
