body { background: linear-gradient(180deg,#f5f9ff 0,#fff 520px); }
.legal-head {
  position: relative; z-index: 5; width: min(calc(100% - 40px),1160px); height: 70px;
  margin: 18px auto 0; padding: 0 16px 0 20px; display: flex; align-items: center;
  justify-content: space-between; border: 1px solid rgba(255,255,255,.9); border-radius: 22px;
  background: rgba(255,255,255,.84); box-shadow: 0 14px 45px rgba(8,17,31,.08);
  backdrop-filter: blur(18px); font-size: 12px; font-weight: 800;
}
.legal-head::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -19px; height: 1px; background: linear-gradient(90deg,var(--blue),transparent 55%); opacity: .28; }
.legal-head .brand img { width: 116px; height: 116px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: .25s ease; }
.back-link:hover { color: #fff; background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.back-link .ui-icon { width: 15px; height: 15px; transform: rotate(-90deg); }
.legal {
  position: relative; max-width: 900px; margin: 0 auto; padding: 130px 40px 150px;
}
.legal::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -260px; top: 75px; border: 1px solid rgba(8,119,255,.14); border-radius: 50%; box-shadow: 0 0 0 55px rgba(8,119,255,.025),0 0 0 110px rgba(8,119,255,.02); }
.legal::after { content: ""; position: absolute; left: 4px; top: 150px; bottom: 150px; width: 2px; background: linear-gradient(var(--blue),rgba(8,119,255,.06) 72%,transparent); border-radius: 2px; }
.legal h1 { max-width: 850px; margin: 0 0 18px; font-family: var(--display); font-size: clamp(48px,6vw,72px); line-height: .98; letter-spacing: -.06em; overflow-wrap: normal; word-break: normal; }
.updated { margin-bottom: 62px; color: var(--muted); font-size: 13px; }
.legal h2 { margin: 0; padding: 38px 0 12px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }
.legal > p:not(.section-kicker):not(.updated) { max-width: 760px; margin: 0 0 38px; color: #5e6a7e; line-height: 1.8; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.legal-note { position: relative; margin: 0 0 68px; padding: 28px 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; color: #fff; background: linear-gradient(140deg,#10213a,#07111f); box-shadow: 0 25px 60px rgba(8,17,31,.2); }
.legal-note::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -90px; border: 1px solid rgba(83,158,255,.4); border-radius: 50%; box-shadow: 0 0 0 24px rgba(8,119,255,.04); }
.legal-note b { font-family: var(--display); font-size: 14px; letter-spacing: -.02em; }
.legal-note p { max-width: 690px; margin: 8px 0 0; color: #aebbd0; }
.legal-footer { min-height: 92px; padding: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #8f9caf; font-size: 10px; letter-spacing: .08em; }
.legal-footer a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:650px) {
  .legal-head { width: calc(100% - 24px); height: 60px; margin-top: 10px; padding: 0 7px 0 14px; border-radius: 18px; }
  .legal-head .brand { width: 104px; height: 44px; }.legal-head .brand img { width: 104px; height: 104px; top: -25px; }
  .back-link { font-size: 10px; }
  .legal { padding: 92px 20px 100px; }
  .legal::before { width: 190px; height: 190px; right: 0; top: 48px; }.legal::after { display: none; }
  .legal h1 { font-size: clamp(31px,8.4vw,42px); letter-spacing: -.075em; }
  .updated { margin-bottom: 44px; }
  .legal-note { margin-bottom: 52px; padding: 23px 20px; border-radius: 20px; }
  .legal h2 { padding-top: 30px; font-size: 16px; }
  .legal > p:not(.section-kicker):not(.updated) { margin-bottom: 30px; font-size: 14px; }
}
