/* The onboarding pages: the connect page's palette (navy, ink, gold, blue) on system type, because the policy of
   these pages allows no font and no asset from another origin. 16px is the smallest type on the page: a partner
   reads an agreement here. */
:root{--navy:#0b1a2e;--ink:#eaf1fb;--mute:rgba(234,241,251,.72);--gold:#e4c877;--blue:#78beff;--card:rgba(255,255,255,.04);--line:rgba(255,255,255,.14);--field:rgba(255,255,255,.07);--red:#ffb3b3;--green:#9fe3b8;--paper:#fff;--paper-ink:#16202b}
*{box-sizing:border-box}
html,body{margin:0;background:var(--navy);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
/* the pages show and hide blocks with the hidden attribute only (no inline style under the policy); it wins over
   every display rule below */
[hidden]{display:none !important}
header{padding:40px 6vw 20px;border-bottom:1px solid var(--line)}
.kicker .kmark{width:28px;height:28px;vertical-align:-9px;margin-right:10px;color:var(--blue)}
.kicker{font-size:16px;letter-spacing:.3em;text-transform:uppercase;color:var(--mute);font-weight:500}
h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(30px,4.5vw,48px);line-height:1.1;margin:.3em 0 .2em;letter-spacing:.01em}
.lead{max-width:760px;font-size:18px;color:var(--mute);margin:.2em 0 0}
main{padding:20px 6vw 80px;max-width:900px}
h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:26px;margin:40px 0 8px}
h3{font-size:16px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:600;margin:24px 0 8px}
p{margin:.55em 0}
a{color:var(--blue)}
.small{font-size:16px;color:var(--mute)}
.mono{font-family:ui-monospace,Menlo,monospace;overflow-wrap:anywhere}
footer{padding:28px 6vw 48px;border-top:1px solid var(--line);color:var(--mute);font-size:16px}

/* the one region every answer of the API is written to; the screen reader hears it */
.message{min-height:1.5em;margin:12px 0 0;padding:0}
.message.is-error{color:var(--red)}
.message.is-ok{color:var(--green)}

fieldset{border:1px solid var(--line);border-radius:14px;padding:18px 22px 22px;margin:22px 0;background:var(--card)}
legend{padding:0 8px;font-family:Georgia,"Times New Roman",serif;font-size:22px}
.field{margin:14px 0}
.field > label, .field > .label{display:block;font-weight:500;margin-bottom:6px}
.hint{display:block;font-size:16px;color:var(--mute);margin:4px 0 0}
input[type=text],input[type=email],input[type=tel],select{display:block;width:100%;max-width:560px;font:inherit;font-size:16px;color:var(--ink);background:var(--field);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
select{appearance:auto}
select option{color:var(--paper-ink);background:var(--paper)}
input[type=text]:focus,input[type=email]:focus,input[type=tel]:focus,select:focus,button:focus,a:focus,.text:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:2px solid var(--gold);outline-offset:2px}
input[readonly]{color:var(--mute)}
input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--red)}
/* a control and its label share one line and the label wraps BESIDE the control, never under it; the example line
   sits under the label at the label's own indent (David 10-26-26, two iPhone shots: a wrapped label had dropped the
   radio or checkbox onto a line of its own, and the examples indented unevenly). A two-column grid, not a wrapping
   flex row, so the geometry is the same at 390 px and on a desktop. */
.tick{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:start;margin:12px 0;padding:2px 0;cursor:pointer}
.tick > input{grid-column:1;grid-row:1;margin:3px 0 0;width:18px;height:18px;accent-color:var(--gold)}
.tick > span:not(.hint){grid-column:2;grid-row:1;min-width:0;overflow-wrap:break-word}
.tick > .hint{grid-column:2;grid-row:2;margin:0}
.error{color:var(--red);margin:6px 0 0;font-size:16px}
.row{border:1px solid var(--line);border-radius:10px;padding:12px 16px 16px;margin:12px 0}
.row .field{margin:10px 0}
.row-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.row-head .label{font-weight:600;color:var(--gold)}
.actions{margin:18px 0 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center}

button{font:inherit;font-size:16px;border-radius:8px;padding:10px 18px;cursor:pointer;border:1px solid var(--line);background:transparent;color:var(--ink)}
button.primary{background:var(--gold);color:var(--navy);border-color:var(--gold);font-weight:600}
button.danger{border-color:var(--red);color:var(--red)}
button[disabled]{opacity:.5;cursor:not-allowed}
button.linklike{border:0;padding:0;background:none;color:var(--blue);text-decoration:underline}

/* the pinned text, on paper: the same shapes as the public terms page (one element per line) */
.text{background:var(--paper);color:var(--paper-ink);border-radius:10px;padding:1rem 1.25rem;max-height:60vh;overflow:auto;line-height:1.6}
.text h1{font-family:inherit;font-size:1.5rem;line-height:1.3;margin:0 0 .25rem;letter-spacing:0}
.text h2{font-family:inherit;font-size:1.05rem;margin:1.6rem 0 .35rem;font-weight:600}
.text p{margin:.55rem 0}
.text ul{margin:.55rem 0;padding-left:1.25rem}
.text li{margin:.3rem 0}
.text .version{color:#4a5563;margin-top:0}
.text .check{padding-left:.25rem}
.summary{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 22px}
.summary h2{font-size:22px;margin:0 0 8px}
.summary ul{padding-left:1.1em;margin:.3em 0}
.summary li{margin:.4em 0}
.summary p{margin:.4em 0}
.sentinel{height:1px}

/* the onboarding record as the agreement page shows it */
.record dt{font-weight:600;margin-top:12px;color:var(--gold)}
.record dd{margin:2px 0 0;overflow-wrap:anywhere}
.record ul{margin:.2em 0;padding-left:1.1em}
.record li{margin:.3em 0}

.receipt-line{margin:14px 0}
.state{font-size:22px;margin:16px 0}
.key{font-family:ui-monospace,Menlo,monospace;font-size:16px;background:var(--paper);color:var(--paper-ink);border-radius:10px;padding:14px 16px;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}
@media (max-width:600px){header{padding:28px 5vw 16px}main{padding:16px 5vw 60px}fieldset{padding:14px 14px 18px}legend{font-size:20px}.row{padding:12px 12px 14px}#intake .actions{flex-direction:column;align-items:stretch}#intake .actions button{width:100%}#intake .actions .small{text-align:center}.text{max-height:55vh}}
@media print{.text{max-height:none;overflow:visible}}

/* the two gates of the sign button as visible steps, and calls to action a reader cannot miss (David 10-09-26) */
.steps{margin:24px 0 8px}
.steplist{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:12px}
.step{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border:1px solid var(--line);border-radius:10px}
.step-no{flex:0 0 32px;width:32px;height:32px;border-radius:50%;border:2px solid var(--gold);color:var(--gold);font-weight:600;display:flex;align-items:center;justify-content:center}
.step.done{border-color:var(--gold)}
.step.done .step-no{background:var(--gold);color:var(--navy)}
.step-state{display:block;margin-top:6px;color:var(--gold);font-weight:600}
.cta{display:inline-block;margin-top:10px;padding:10px 16px;border:1px solid var(--gold);border-radius:8px;color:var(--gold);font-weight:600;text-decoration:none}
.cta:hover{background:rgba(228,200,119,.12)}
button.primary.big{font-size:18px;padding:14px 24px;width:100%;max-width:420px}
.gate-note{font-weight:600;margin:10px 0 0}
@media (max-width:600px){button.primary.big{max-width:none}}

/* the mark in the kicker animates once on load (David 10-09-26: the animated logo belongs on these pages too); the
   same sequence as the app shell's theme.css: the M strokes draw node to node, the inner lines reach the core, the
   core blooms, then it rests. The policy allows no inline style, so the rules live here. Reduced motion: the resting
   mark. Classes inside the SVG: m-stroke s1..s4, m-inner, m-node n1..n4, m-halo, m-core. */
.mark-anim.play .m-stroke{stroke-dasharray:36;animation:m-draw-loop 7s cubic-bezier(.22,1,.36,1) infinite}
.mark-anim.play .m-stroke.s2{animation-delay:.12s}
.mark-anim.play .m-stroke.s3{animation-delay:.24s}
.mark-anim.play .m-stroke.s4{animation-delay:.36s}
.mark-anim.play .m-inner{stroke-dasharray:30;animation:m-draw-inner-loop 7s cubic-bezier(.22,1,.36,1) infinite}
.mark-anim.play .m-node{transform-origin:center;transform-box:fill-box;animation:m-pop .4s cubic-bezier(.22,1,.36,1) both,m-pulse 7s ease-in-out 1.2s infinite}
.mark-anim.play .m-node.n2{animation-delay:.12s,1.32s}
.mark-anim.play .m-node.n3{animation-delay:.24s,1.44s}
.mark-anim.play .m-node.n4{animation-delay:.36s,1.56s}
.mark-anim.play .m-core{transform-origin:center;transform-box:fill-box;animation:m-bloom .5s cubic-bezier(.22,1,.36,1) .8s both,m-breathe 3.5s ease-in-out 1.3s infinite}
.mark-anim.play .m-halo{transform-origin:center;transform-box:fill-box;animation:m-halo .9s ease-out .8s both,m-halo-breathe 3.5s ease-in-out 1.7s infinite}
@keyframes m-draw-loop{0%{stroke-dashoffset:36}9%{stroke-dashoffset:0}90%{stroke-dashoffset:0}100%{stroke-dashoffset:36}}
@keyframes m-draw-inner-loop{0%,7%{stroke-dashoffset:30}15%{stroke-dashoffset:0}90%{stroke-dashoffset:0}100%{stroke-dashoffset:30}}
@keyframes m-pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes m-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@keyframes m-bloom{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}
@keyframes m-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes m-halo{0%{opacity:0;transform:scale(.6)}60%{opacity:.5}100%{opacity:.16;transform:scale(1)}}
@keyframes m-halo-breathe{0%,100%{opacity:.14;transform:scale(1)}50%{opacity:.26;transform:scale(1.12)}}
@media (prefers-reduced-motion:reduce){.mark-anim.play .m-stroke,.mark-anim.play .m-inner,.mark-anim.play .m-node,.mark-anim.play .m-core,.mark-anim.play .m-halo{animation:none}}

/* ---- the funnel (/onboarding only, 11-18-26): the homepage's quantum look, scoped to body.funnel so the agreement,
   status and credential pages keep the rules above. The two type families are this folder's own files (font-src
   'self'); the clip is the homepage's own (media-src 'self'). ---- */
@font-face{font-family:"Fraunces";src:url(./fonts/fraunces-latin.woff2) format("woff2");font-weight:300 400;font-style:normal;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(./fonts/hanken-grotesk-latin.woff2) format("woff2");font-weight:300 500;font-style:normal;font-display:swap}
html:has(body.funnel){background:#000}
.funnel{background:transparent;font-family:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px}
.funnel .stage{position:fixed;inset:0;z-index:-1;background:#000}
.funnel .stage .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.8s ease}
.funnel .stage .bg.on{opacity:.55}
.funnel .stage .veil{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,rgba(4,10,18,.35) 0%,rgba(4,10,18,.8) 70%),linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.65))}
.funnel h1,.funnel h2,.funnel legend{font-family:"Fraunces",Georgia,serif;font-weight:300}
.funnel .hero{min-height:92vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-bottom:0;padding:60px 6vw}
.funnel .hero h1{font-size:clamp(40px,7vw,104px);line-height:1.02;letter-spacing:.02em;color:#fff;text-shadow:0 0 60px rgba(120,190,255,.25);animation:f-reveal 2.2s cubic-bezier(.22,1,.36,1) .3s both}
.funnel .hero h1 span{display:block;color:var(--gold);font-size:.58em;letter-spacing:.06em;margin-top:.15em}
.funnel .hero .lead{max-width:640px;margin:22px auto 0;font-size:clamp(18px,1.6vw,22px);animation:f-rise 1.6s cubic-bezier(.22,1,.36,1) 1s both}
.funnel .hero .kicker{animation:f-rise 1.4s ease .1s both}
.funnel .hero-cta{margin:34px 0 0;animation:f-rise 1.6s cubic-bezier(.22,1,.36,1) 1.4s both}
.funnel .scroll-hint{margin-top:5vh;font-size:13px;letter-spacing:.3em;text-transform:uppercase;color:rgba(234,241,251,.45);animation:f-rise 1.4s ease 2.2s both}
.funnel a.button,.funnel button.primary{display:inline-block;font:inherit;font-size:20px;font-weight:500;padding:16px 38px;border-radius:999px;border:0;background:linear-gradient(135deg,#f2dc96,#e4c877 45%,#b8963d);color:#0b1a2e;text-decoration:none;cursor:pointer;box-shadow:0 10px 40px rgba(228,200,119,.25);transition:transform .2s ease,box-shadow .2s ease}
.funnel a.button:hover,.funnel button.primary:hover{transform:translateY(-2px);box-shadow:0 14px 48px rgba(228,200,119,.38)}
.funnel button.back{font:inherit;font-size:18px;padding:14px 26px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer}
.funnel button.back:disabled{visibility:hidden}
.funnel .pitch{max-width:1080px;margin:0 auto;padding:70px 6vw}
.funnel .pitch h2{font-size:clamp(30px,4vw,52px);text-align:center;margin:0 0 34px;color:#fff}
.funnel .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.funnel .card{border:1px solid var(--line);border-radius:18px;padding:26px;background:rgba(11,26,46,.55);backdrop-filter:blur(6px)}
.funnel .card h3{font-family:"Fraunces",Georgia,serif;font-weight:400;text-transform:none;letter-spacing:.01em;font-size:24px;color:var(--gold);margin:0 0 8px}
.funnel .how{list-style:none;counter-reset:how;padding:0;margin:0 auto;max-width:720px}
.funnel .how li{counter-increment:how;position:relative;padding:18px 0 18px 70px;border-bottom:1px solid var(--line);font-size:20px}
.funnel .how li::before{content:counter(how);position:absolute;left:0;top:14px;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:"Fraunces",Georgia,serif;font-size:24px;color:#0b1a2e;background:var(--gold)}
.funnel .steps-wrap{max-width:760px;margin:0 auto;padding:60px 6vw 100px;scroll-margin-top:20px}
.funnel .steps-title{text-align:center;font-size:clamp(30px,4vw,48px);margin:0 0 20px;color:#fff}
.funnel .progress{height:6px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
.funnel .progress .bar{height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--gold));transition:width .5s cubic-bezier(.22,1,.36,1)}
.funnel .step-count{text-align:center;margin:10px 0 0}
.funnel fieldset[data-step]{border-radius:22px;padding:30px 30px 26px;background:rgba(11,26,46,.72);backdrop-filter:blur(8px);animation:f-rise .6s cubic-bezier(.22,1,.36,1) both}
.funnel fieldset[data-step] legend{float:left;width:100%;font-size:clamp(26px,3vw,36px);line-height:1.15;color:#fff;padding:0;margin:0 0 6px}
.funnel fieldset[data-step] legend + *{clear:both}
.funnel input[type=text],.funnel input[type=email],.funnel input[type=tel],.funnel select{font-size:20px;padding:14px 16px;max-width:none;border-radius:12px}
.funnel .tick{font-size:18px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;margin:10px 0}
.funnel .nav{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:26px}
.funnel .reveal{opacity:0;transform:translateY(28px);transition:opacity .9s cubic-bezier(.22,1,.36,1),transform .9s cubic-bezier(.22,1,.36,1)}
.funnel .reveal.in{opacity:1;transform:none}
@keyframes f-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes f-reveal{from{opacity:0;filter:blur(12px);transform:scale(1.03)}to{opacity:1;filter:blur(0);transform:none}}
@media (max-width:700px){.funnel .hero{min-height:86vh}.funnel fieldset[data-step]{padding:22px 18px}.funnel .how li{font-size:18px}.funnel .nav{flex-direction:row}}
@media (prefers-reduced-motion:reduce){.funnel *{animation:none}.funnel .reveal{opacity:1;transform:none;transition:none}}
.funnel .bar.at-0{width:0%}.funnel .bar.at-5{width:5%}.funnel .bar.at-10{width:10%}.funnel .bar.at-15{width:15%}.funnel .bar.at-20{width:20%}.funnel .bar.at-25{width:25%}.funnel .bar.at-30{width:30%}.funnel .bar.at-35{width:35%}.funnel .bar.at-40{width:40%}.funnel .bar.at-45{width:45%}.funnel .bar.at-50{width:50%}.funnel .bar.at-55{width:55%}.funnel .bar.at-60{width:60%}.funnel .bar.at-65{width:65%}.funnel .bar.at-70{width:70%}.funnel .bar.at-75{width:75%}.funnel .bar.at-80{width:80%}.funnel .bar.at-85{width:85%}.funnel .bar.at-90{width:90%}.funnel .bar.at-95{width:95%}.funnel .bar.at-100{width:100%}
/* the training video (11-18-26, [david:madai-training-video-1118]): our own file, our own player, full width on a phone */
.funnel .button.ghost{background:transparent;color:var(--ink);border:1px solid rgba(234,241,251,.35);box-shadow:none;margin-left:10px}
.funnel .button.ghost:hover,.funnel .button.ghost:focus{border-color:var(--gold);color:var(--gold)}
.funnel .watch{max-width:980px;scroll-margin-top:20px}
.funnel .player{position:relative;aspect-ratio:16/9;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#000;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 60px rgba(120,190,255,.12)}
.funnel .player video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.funnel .watch-note{text-align:center;margin:14px auto 0;max-width:620px}
@media (max-width:600px){.funnel .hero-cta .button{display:block;width:100%;max-width:320px;margin:10px auto 0}.funnel .button.ghost{margin-left:auto}.funnel .player{border-radius:12px;margin:0 -2vw}}

/* ---- the agreement page layout (11-20-26, David [david:mad-agreement-page-1119]: on a wide window the page was one
   narrow column on a dark page, a small agreement box and an acceptance card the same width). Scoped to
   body.agreement-page; the palette and the controls are the rules above. From 1024 px: the reading column on the
   left with an agreement box most of the window tall, the signing panel on the right, sticky while the left
   scrolls. Below that the two stack (the agreement, then the panel); on a phone the gutters are 16 px. ---- */
.agreement-page main{max-width:none}
.agreement-page .agreement-layout{display:block;max-width:1500px}
.agreement-page .reading{min-width:0}
.agreement-page .acceptance-card{margin-top:32px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:6px 22px 22px}
.agreement-page .acceptance-card .steps{margin-top:0}
.agreement-page .acceptance-card .steps h2{font-size:22px;margin:16px 0 4px}
.agreement-page .acceptance-card fieldset{border:0;border-radius:0;padding:0;margin:22px 0 0;background:none}
.agreement-page .acceptance-card legend{padding:0;margin-bottom:4px}
.agreement-page .acceptance-card input[type=text],.agreement-page .acceptance-card input[type=email]{max-width:none}
.agreement-page .acceptance-card button.primary.big{max-width:none}
.agreement-page .text{max-height:70vh}
.agreement-page button.cta{display:block;background:transparent;font:inherit;font-weight:600}
@media (min-width:1024px){
  .agreement-page .agreement-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,440px);column-gap:40px;align-items:start}
  .agreement-page .acceptance-card{position:sticky;top:24px;margin-top:20px;max-height:calc(100vh - 48px);overflow-y:auto;overscroll-behavior:contain}
  .agreement-page .text{max-height:none;height:calc(100vh - 48px);min-height:420px}
  .agreement-page .record{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);column-gap:20px}
  .agreement-page .record dt,.agreement-page .record dd{margin-top:12px}
}
@media (max-width:600px){
  .agreement-page header{padding:28px 16px 16px}
  .agreement-page main{padding:16px 16px 60px}
  .agreement-page footer{padding:24px 16px 40px}
  .agreement-page .acceptance-card{padding:4px 14px 18px}
  .agreement-page .text{max-height:65vh;padding:.85rem 1rem}
  .agreement-page .step{padding:12px}
}

/* the route choices: a radio and its statement, the "?" beside it, the help under it. A hover or a keyboard focus
   shows the help as a tip where a pointer can hover; a tap or a click keeps it open (.open), which is how a phone
   shows it. The help is display:none until then but stays the radio's description for a screen reader. */
.agreement-page .routes{margin:6px 0 0}
.agreement-page .routes:focus{outline:2px solid var(--gold);outline-offset:4px;border-radius:6px}
.agreement-page .route{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}
.agreement-page .route > .tick{grid-column:1;grid-row:1;margin:10px 0}
.agreement-page .help-tip{grid-column:2;grid-row:1;margin-top:8px;width:28px;height:28px;padding:0;border-radius:50%;border:1px solid var(--blue);color:var(--blue);font-weight:700;line-height:1;display:flex;align-items:center;justify-content:center}
.agreement-page .help-tip:hover,.agreement-page .route.open .help-tip{background:rgba(120,190,255,.14)}
.agreement-page .route-help{display:none;grid-column:1 / -1;grid-row:2;margin:0 0 8px 28px;padding:10px 12px;border-radius:8px;border-left:3px solid var(--blue);background:rgba(120,190,255,.08);color:var(--ink)}
.agreement-page .route.open .route-help,.agreement-page .route:has(input:focus-visible) .route-help{display:block}
@media (hover:hover) and (pointer:fine){
  .agreement-page .route:not(.open):hover .route-help,.agreement-page .route:not(.open):has(.help-tip:focus-visible) .route-help{display:block;position:absolute;z-index:3;top:100%;left:28px;right:0;margin:-4px 0 0;background:var(--paper);color:var(--paper-ink);border-left-color:var(--gold);box-shadow:0 8px 24px rgba(0,0,0,.45)}
}

/* the Legal Notices dialog (a lightbox on this page, not a tab): the text on paper, a head with the close button and
   a foot with a second one; the backdrop dims the page. */
.agreement-page .notices-dialog{width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:14px;background:var(--navy);color:var(--ink);box-shadow:0 30px 80px rgba(0,0,0,.6)}
.agreement-page .notices-dialog[open]{display:flex;flex-direction:column}
.agreement-page .notices-dialog::backdrop{background:rgba(4,10,18,.78)}
.agreement-page .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px 12px 22px;border-bottom:1px solid var(--line)}
.agreement-page .dialog-head h2{margin:0;font-size:24px}
.agreement-page .dialog-x{width:40px;height:40px;padding:0;font-size:26px;line-height:1;border-radius:50%}
.agreement-page .dialog-text{flex:1 1 auto;min-height:0;max-height:none;margin:16px;overflow:auto}
.agreement-page .dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 16px 16px 22px}
@media (max-width:600px){.agreement-page .notices-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.agreement-page .dialog-text{margin:12px}.agreement-page .dialog-foot button{width:100%}}
