/*
 * AVYGEN — Legal / Institutional UI V1
 */

.legal-page{
  margin:0;
  background:#f5f6ff;
  color:#11152a;
}

.legal-page .site-header{
  background:rgba(7,11,27,.88);
}

.legal-skip{
  position:fixed;
  left:16px;
  top:-80px;
  z-index:100;
  padding:12px 16px;
  border-radius:10px;
  background:#fff;
  color:#11152a;
  font-weight:800;
  transition:top .2s;
}

.legal-skip:focus{
  top:12px;
}

.legal-header-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:18px;
}

.legal-home-link{
  color:#aeb5ce;
  font-size:14px;
  font-weight:700;
}

.legal-home-link:hover{
  color:#fff;
}


/* HERO */

.legal-hero{
  position:relative;
  overflow:hidden;
  padding:136px 0 70px;
  color:#fff;
  background:
    radial-gradient(
      circle at 75% 10%,
      rgba(124,77,255,.28),
      transparent 34%
    ),
    radial-gradient(
      circle at 10% 100%,
      rgba(54,213,207,.12),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #070b1b 0%,
      #0a1230 63%,
      #141047 100%
    );
}

.legal-hero:after{
  content:"";
  position:absolute;
  width:600px;
  height:600px;
  right:-220px;
  top:-120px;
  border-radius:50%;
  border:1px solid rgba(118,224,255,.1);
  box-shadow:
    0 0 110px rgba(92,80,255,.12),
    inset 0 0 90px rgba(255,255,255,.02);
}

.legal-glow{
  position:absolute;
  pointer-events:none;
  border-radius:50%;
  filter:blur(40px);
  opacity:.45;
}

.legal-glow-one{
  width:230px;
  height:230px;
  left:8%;
  bottom:-120px;
  background:#36d5cf;
  opacity:.08;
}

.legal-glow-two{
  width:260px;
  height:260px;
  right:20%;
  top:-150px;
  background:#7c4dff;
  opacity:.16;
}

.legal-hero-inner{
  position:relative;
  z-index:2;
  max-width:950px;
}

.legal-breadcrumb{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:32px;
  color:#858eaf;
  font-size:12px;
  font-weight:800;
}

.legal-breadcrumb span{
  color:#5e6788;
}

.legal-hero .eyebrow{
  display:block;
  color:#78e4df;
  margin-bottom:16px;
}

.legal-hero h1{
  max-width:900px;
  margin:0;
  font-size:clamp(46px,6vw,74px);
  line-height:1;
  letter-spacing:-.055em;
}

.legal-lead{
  max-width:720px;
  margin:25px 0 0;
  color:#b9c0d8;
  font-size:18px;
  line-height:1.7;
}

.legal-meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:30px;
  color:#a5aecb;
  font-size:13px;
}

.legal-meta strong{
  color:#fff;
}

.legal-meta-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#67ddd8;
  box-shadow:0 0 18px rgba(103,221,216,.7);
}


/* MAIN */

.legal-main{
  padding:60px 0 72px;
}

.legal-grid{
  display:grid;
  grid-template-columns:260px minmax(0,820px);
  justify-content:center;
  gap:56px;
  align-items:start;
}


/* SIDEBAR */

.legal-sidebar{
  position:sticky;
  top:106px;
}

.legal-sidebar-card{
  padding:24px;
  border:1px solid #e1e5f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 20px 55px rgba(22,30,72,.06);
}

.legal-sidebar-label{
  display:block;
  margin-bottom:14px;
  color:#777f98;
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
}

.legal-toc{
  display:grid;
  gap:3px;
}

.legal-toc a{
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 9px;
  border-radius:10px;
  color:#495069;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
}

.legal-toc a:hover{
  background:#f1f2ff;
  color:#474ed1;
}

.legal-toc span{
  flex:0 0 26px;
  color:#8a91aa;
  font-size:11px;
  font-weight:900;
}

.legal-sidebar-support{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid #eceef5;
}

.legal-sidebar-support strong{
  display:block;
  font-size:13px;
}

.legal-sidebar-support p{
  margin:7px 0 10px;
  color:#787f95;
  font-size:13px;
  line-height:1.65;
}

.legal-sidebar-support a{
  color:#555cf1;
  font-size:11px;
  font-weight:900;
}


/* DOCUMENT */

.legal-document{
  min-width:0;
  overflow:hidden;
  border:1px solid #e1e5ef;
  border-radius:28px;
  background:#fff;
  box-shadow:0 28px 80px rgba(21,30,70,.08);
}

.legal-summary{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin:38px 42px 4px;
  padding:20px;
  border:1px solid #e5e7f6;
  border-radius:16px;
  background:
    linear-gradient(
      135deg,
      #f8f9ff,
      #f4f5ff
    );
}

.legal-summary-icon{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#e9ebff;
  color:#5057dc;
  font-weight:900;
}

.legal-summary strong{
  display:block;
  color:#212642;
  font-size:14px;
}

.legal-summary p{
  margin:5px 0 0;
  color:#6c7288;
  font-size:13px;
  line-height:1.55;
}

.legal-section{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:18px;
  padding:42px;
  scroll-margin-top:105px;
}

.legal-section + .legal-section{
  border-top:1px solid #edf0f6;
}

.legal-section-number{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eef0ff;
  color:#565df0;
  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
}

.legal-section h2{
  margin:3px 0 17px;
  color:#191e36;
  font-size:26px;
  line-height:1.2;
  letter-spacing:-.035em;
}

.legal-section p{
  margin:0;
  color:#5e657d;
  font-size:16px;
  line-height:1.78;
}

.legal-section p + p{
  margin-top:16px;
}

.legal-section strong{
  color:#2e3551;
}


/* NOTE */

.legal-note{
  display:flex;
  gap:15px;
  margin:4px 42px 42px;
  padding:20px;
  border:1px solid #e5e7f0;
  border-radius:16px;
  background:#fafafe;
}

.legal-note-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eef0ff;
  color:#555cf1;
  font-family:Georgia,serif;
  font-weight:900;
}

.legal-note strong{
  display:block;
  color:#30364d;
  font-size:13px;
}

.legal-note p{
  margin:5px 0 0;
  color:#767c91;
  font-size:12px;
  line-height:1.6;
}


/* ACTIONS */

.legal-actions{
  display:flex;
  gap:12px;
  padding:32px 42px 42px;
  border-top:1px solid #edf0f6;
}

.legal-actions .btn{
  box-shadow:none;
}

.legal-actions .legal-secondary{
  border:1px solid #dfe3f1;
  background:#fff;
  color:#454c68;
}


/* FOOTER */

.legal-footer{
  background:#060916;
  color:#929ab5;
  padding:50px 0 24px;
}


/* TABLET */

@media(max-width:980px){

  .legal-grid{
    grid-template-columns:1fr;
    max-width:820px;
  }

  .legal-sidebar{
    position:relative;
    top:auto;
  }

  .legal-sidebar-card{
    padding:20px;
  }

  .legal-toc{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .legal-sidebar-support{
    display:none;
  }

}


/* MOBILE */

@media(max-width:640px){

  .legal-header-actions{
    gap:8px;
  }

  .legal-home-link{
    display:none;
  }

  .legal-header .nav-login{
    display:none;
  }

  .legal-hero{
    padding:104px 0 52px;
  }

  .legal-breadcrumb{
    margin-bottom:25px;
  }

  .legal-hero h1{
    font-size:42px;
  }

  .legal-lead{
    font-size:16px;
  }

  .legal-main{
    padding:28px 0 52px;
  }

  .legal-grid{
    gap:18px;
  }

  .legal-sidebar-card{
    border-radius:18px;
  }

  .legal-toc{
    grid-template-columns:1fr;
  }

  .legal-document{
    border-radius:20px;
  }

  .legal-summary{
    margin:20px 20px 0;
  }

  .legal-section{
    grid-template-columns:1fr;
    gap:13px;
    padding:32px 22px;
  }

  .legal-section-number{
    width:38px;
    height:38px;
  }

  .legal-section h2{
    font-size:23px;
  }

  .legal-section p{
    font-size:15px;
    line-height:1.72;
  }

  .legal-note{
    margin:0 20px 28px;
  }

  .legal-actions{
    flex-direction:column;
    padding:25px 20px 28px;
  }

  .legal-actions .btn{
    width:100%;
  }

}


/* ACCESSIBILITY */

@media(prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *,
  *:before,
  *:after{
    transition:none!important;
  }

}
