/* Páginas legais — DS Educare (hero chumbo + card + prose) */
:root{
  --legal-chumbo:radial-gradient(125% 95% at 20% 12%,#5b5b5a 0%,#3f3f3e 42%,#232323 100%);
  --legal-sh-sm:0 2px 8px rgba(26,26,46,.06);
  --legal-sh-md:0 8px 30px rgba(26,26,46,.1);
  --legal-sh-lg:0 20px 60px rgba(26,26,46,.12);
  --r-md:12px;--r-xl:30px;--r-2xl:40px;
}

body.educare-landing-legal{
  font-family:var(--fb);
  color:var(--title);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* Elementor: hero legal colado ao topo (header transparente) */
body.educare-landing-page main.educare-landing.educare-landing-legal .e-con:has(.educare-legal-hero),
body.educare-landing-page main.educare-landing.educare-landing-legal .e-parent:has(.educare-legal-hero),
body.educare-landing-page main.educare-landing.educare-landing-legal .elementor-widget-educare_legal_document,
body.educare-landing-page main.educare-landing.educare-landing-legal .elementor-widget-educare_legal_document > .elementor-widget-container{
  --padding-top:0!important;
  --container-default-padding-top:0!important;
  padding-top:0!important;
  margin-top:0!important;
}

@keyframes legal-gradient-shift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}

/* Hero compacto — gradiente chumbo institucional */
body.educare-landing-page main.educare-landing.educare-landing-legal section.hero.hero--legal,
.educare-landing-legal .hero--legal{
  position:relative;
  min-height:auto;
  --educare-legal-hero-topbar:100px;
  padding:calc(var(--educare-legal-hero-topbar) + clamp(48px,7vh,88px)) 0 clamp(56px,8vh,72px)!important;
  overflow:hidden;
  background:var(--legal-chumbo);
  margin-top:0!important;
}
.educare-landing-legal .hero--legal::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(70% 50% at 80% 18%,rgba(255,255,255,.045) 0%,transparent 60%),
    linear-gradient(120deg,rgba(255,255,255,.02) 0%,transparent 28%,rgba(0,0,0,.24) 100%);
  mix-blend-mode:soft-light;
}
.educare-landing-legal .hero--legal .hero__mesh{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%,rgba(240,177,0,.12) 0%,transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%,rgba(221,106,7,.1) 0%,transparent 60%);
  background-size:200% 200%;
  animation:legal-gradient-shift 12s ease infinite;
}
.educare-landing-legal .hero--legal .hero__ring{
  position:absolute;
  border:1px solid rgba(210,210,210,.08);
  border-radius:50%;
  z-index:1;
  pointer-events:none;
}
.educare-landing-legal .hero--legal .hero__ring--1{width:min(700px,90vw);height:min(700px,90vw);top:50%;left:50%;transform:translate(-50%,-50%)}
.educare-landing-legal .hero--legal .hero__ring--2{width:min(500px,70vw);height:min(500px,70vw);top:50%;left:50%;transform:translate(-50%,-50%);border-color:rgba(235,235,235,.05)}
.educare-landing-legal .hero--legal .hero__bg-text{
  position:absolute;
  font-family:var(--fh);
  font-size:clamp(72px,14vw,200px);
  font-weight:600;
  text-transform:uppercase;
  white-space:nowrap;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:1;
  pointer-events:none;
  user-select:none;
  background:linear-gradient(to right,rgba(255,255,255,.028),rgba(245,245,245,.008));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.educare-landing-legal .hero--legal .hero__container{
  position:relative;
  z-index:10;
  display:block;
  text-align:center;
  max-width:var(--page-max,1350px);
  margin:0 auto;
  padding-top:clamp(32px,4vh,56px);
  padding-inline:var(--side,0);
}
.educare-landing-legal .hero--legal .hero__breadcrumb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,.35);
  margin-top:clamp(8px,1.5vh,16px);
  margin-bottom:18px;
}
.educare-landing-legal .hero--legal .hero__breadcrumb a{color:rgba(255,255,255,.5);transition:color .3s}
.educare-landing-legal .hero--legal .hero__breadcrumb a:hover{color:var(--pri)}
.educare-landing-legal .hero--legal .hero__breadcrumb i{font-size:8px;opacity:.4}
.legal-hero__label{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.35em;
  color:var(--pri);
  margin:0 0 16px;
}
.legal-hero__label::before{
  content:'';
  width:40px;
  height:1.5px;
  background:linear-gradient(90deg,var(--pri),var(--sec));
}
.educare-landing-legal .hero--legal .hero__title{
  font-family:var(--fh);
  font-size:clamp(2.2rem,5.5vw,4.2rem);
  font-weight:600;
  line-height:1.05;
  letter-spacing:-.03em;
  margin:0 0 14px;
  color:var(--white);
}
.educare-landing-legal .hero--legal .hero__title .gold{
  background:linear-gradient(135deg,var(--pri),var(--sec));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.educare-landing-legal .hero--legal .hero__desc{
  font-size:clamp(14px,1.1vw,17px);
  font-weight:500;
  color:rgba(255,255,255,.45);
  max-width:560px;
  margin:0 auto 10px;
  line-height:1.75;
}
.legal-hero__updated{
  margin:0;
  font-size:12px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.28);
}

/* Conteúdo */
.legal,
.legal.educare-legal-document{
  position:relative;
  z-index:2;
  margin-top:0;
  padding:clamp(64px,9vh,96px) 0 clamp(80px,10vh,120px);
  background:var(--bg);
}
.legal__container{
  max-width:var(--page-max,1350px);
  margin:0 auto;
  padding:clamp(24px,4vh,40px) var(--side,0) 0;
  box-sizing:border-box;
}
.legal__nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:clamp(24px,4vh,36px);
}
.legal__nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:100px;
  font-size:13px;
  font-weight:600;
  color:var(--txt);
  background:var(--white);
  border:1px solid var(--brd);
  box-shadow:var(--legal-sh-sm);
  transition:all .35s var(--ease-expo);
}
.legal__nav-link:hover{
  border-color:rgba(240,177,0,.25);
  color:var(--sec);
  transform:translateY(-1px);
  box-shadow:var(--legal-sh-md);
}
.legal__nav-link.is-active{
  background:linear-gradient(135deg,var(--pri),var(--sec));
  border-color:transparent;
  color:#fff;
  box-shadow:0 8px 24px rgba(240,177,0,.22);
}
.legal__card{
  background:var(--white);
  border:1px solid var(--brd);
  border-radius:var(--r-xl);
  box-shadow:var(--legal-sh-lg);
  overflow:hidden;
}
.legal__card::before{
  content:'';
  display:block;
  height:4px;
  background:linear-gradient(90deg,var(--pri),var(--sec),var(--acc));
}
.legal__body{padding:clamp(28px,4vw,48px) clamp(24px,4vw,56px)}

.educare-legal-prose{
  max-width:820px;
  margin:0 auto;
  font-size:clamp(14px,1.05vw,16px);
  font-weight:500;
  line-height:1.85;
  color:var(--txt);
}
.educare-legal-prose > :first-child{margin-top:0}
.educare-legal-prose h2{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--fh);
  font-size:clamp(1.05rem,1.8vw,1.35rem);
  font-weight:600;
  color:var(--title);
  margin:2.25rem 0 .85rem;
  line-height:1.3;
}
.educare-legal-prose h2::before{
  content:'';
  flex-shrink:0;
  width:28px;
  height:2px;
  background:linear-gradient(90deg,var(--pri),var(--sec));
  border-radius:2px;
}
.educare-legal-prose h2:first-child{margin-top:0}
.educare-legal-prose h3{
  font-family:var(--fh);
  font-size:1rem;
  font-weight:600;
  color:var(--title);
  margin:1.5rem 0 .5rem;
}
.educare-legal-prose p{margin:0 0 1rem}
.educare-legal-prose ul,.educare-legal-prose ol{
  margin:0 0 1.25rem;
  padding-left:1.35rem;
}
.educare-legal-prose li{margin-bottom:.45rem}
.educare-legal-prose li::marker{color:var(--sec)}
.educare-legal-prose a{
  color:var(--sec);
  text-decoration:underline;
  text-underline-offset:3px;
  transition:color .25s;
}
.educare-legal-prose a:hover{color:var(--pri)}
.educare-legal-prose strong{font-weight:600;color:var(--title)}

@media(min-width:901px){
  :root{--side:0;--page-max:1350px}
}

@media(max-width:900px){
  :root{--side:clamp(20px,5vw,32px)}
  body.educare-landing-page main.educare-landing.educare-landing-legal section.hero.hero--legal,
  .educare-landing-legal .hero--legal{
    --educare-legal-hero-topbar:88px;
    padding:calc(var(--educare-legal-hero-topbar) + clamp(40px,7vh,64px)) 0 clamp(48px,7vh,64px)!important;
  }
  .educare-landing-legal .hero--legal .hero__container{padding-top:clamp(24px,4vh,40px)}
  .legal,.legal.educare-legal-document{padding-top:clamp(48px,7vh,72px)}
  .legal__container{padding-top:clamp(20px,3.5vh,32px)}
  .legal__body{padding:24px 20px}
}
