/* ============================================================================
   ClassWaze Public Legal Pages — Shared Legal CSS
   Pages: Privacy Policy / Terms & Conditions / Refund & Cancellation
   ========================================================================== */

.cw-legal-page{
  --cw-legal-primary:var(--cw-theme-primary,#0A2D6D);
  --cw-legal-accent:var(--cw-theme-accent,#00B4E6);
  --cw-legal-dark:#061A40;
  --cw-legal-text:#31445E;
  --cw-legal-muted:#718197;
  --cw-legal-border:#DCE7EF;
  --cw-legal-light:#F6FBFD;
  --cw-legal-green:#14805A;
  --cw-legal-green-bg:#F0FAF5;
  width:100%;
  padding:20px 0 46px;
  color:var(--cw-legal-text);
  font-family:var(--cw-font-ui,var(--cw-font,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif));
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  scroll-behavior:smooth;
}

.cw-legal-shell{
  width:calc(100% - 28px);
  max-width:1540px;
  margin:0 auto;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.cw-legal-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:16px;
  align-items:stretch;
}

.cw-legal-hero-main,
.cw-legal-hero-side{
  border:1px solid var(--cw-legal-border);
  border-radius:20px;
  overflow:hidden;
}

.cw-legal-hero-main{
  position:relative;
  padding:30px 32px;
  background:
    radial-gradient(circle at 88% 15%,rgba(0,180,230,.24),transparent 30%),
    linear-gradient(135deg,#061A40,#0A2D6D 62%,#086C9D);
  color:#fff;
  box-shadow:0 14px 34px rgba(10,45,109,.09);
}

.cw-legal-hero-main::after{
  content:"";
  position:absolute;
  width:330px;
  height:330px;
  right:-180px;
  bottom:-225px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
}

.cw-legal-kicker{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:9.5px;
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
}

.cw-legal-kicker svg{
  width:14px;
  height:14px;
  display:block;
}

.cw-legal-hero-main h1{
  position:relative;
  z-index:1;
  margin:13px 0 9px;
  color:#fff;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.035em;
  font-weight:900;
}

.cw-legal-hero-main h1 span{
  color:var(--cw-legal-accent);
}

.cw-legal-hero-main>p{
  position:relative;
  z-index:1;
  max-width:860px;
  margin:0;
  color:#D7E5F3;
  font-size:12.5px;
  line-height:1.75;
}

.cw-legal-meta{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:16px;
}

.cw-legal-meta span{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#E3ECF6;
  font-size:10px;
  font-weight:800;
}

.cw-legal-hero-side{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px 18px;
  background:linear-gradient(180deg,#FBFEFF,#F5FBFD);
}

.cw-legal-hero-side-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  margin-bottom:11px;
  border:1px solid #BFE3ED;
  border-radius:13px;
  background:#EFFAFF;
  color:var(--cw-legal-accent);
  line-height:0;
}

.cw-legal-hero-side-icon svg{
  width:21px;
  height:21px;
  display:block;
}

.cw-legal-hero-side strong{
  color:var(--cw-legal-primary);
  font-size:13px;
  line-height:1.35;
  font-weight:900;
}

.cw-legal-hero-side>span{
  margin-top:5px;
  color:var(--cw-legal-muted);
  font-size:10.5px;
  line-height:1.65;
}

/* --------------------------------------------------------------------------
   MAIN TWO-COLUMN LAYOUT
   -------------------------------------------------------------------------- */

.cw-legal-layout{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:16px;
  align-items:start;
  margin-top:16px;
}

/* --------------------------------------------------------------------------
   LEFT LONG ROUNDED TOC CARD
   -------------------------------------------------------------------------- */

.cw-legal-toc{
  position:sticky;
  top:18px;
  overflow:hidden;
  border:1px solid var(--cw-legal-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(10,45,109,.045);
}

.cw-legal-toc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 15px 10px;
  border-bottom:1px solid #E7EEF3;
  background:linear-gradient(180deg,#FBFEFF,#F8FCFE);
}

.cw-legal-toc-head>span{
  color:var(--cw-legal-primary);
  font-size:11px;
  font-weight:900;
}

.cw-legal-toc-toggle{
  display:none;
}

.cw-legal-toc-nav{
  display:grid;
  gap:3px;
  padding:8px;
}

.cw-legal-toc-nav a{
  position:relative;
  display:block;
  padding:9px 10px 9px 12px;
  border:1px solid transparent;
  border-radius:10px;
  color:#5F7289;
  font-size:10.5px;
  line-height:1.5;
  font-weight:800;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.cw-legal-toc-nav a::before{
  content:"";
  position:absolute;
  left:5px;
  top:50%;
  width:3px;
  height:3px;
  border-radius:50%;
  background:#B7C9D6;
  transform:translateY(-50%);
}

.cw-legal-toc-nav a:hover{
  color:var(--cw-legal-primary);
  border-color:#D7EBF2;
  background:#F5FCFE;
  transform:translateX(1px);
}

.cw-legal-toc-nav a.is-active{
  color:var(--cw-legal-primary);
  border-color:#C9E7EF;
  background:#EFFAFF;
  box-shadow:inset 3px 0 0 var(--cw-legal-accent);
}

.cw-legal-toc-nav a.is-active::before{
  background:var(--cw-legal-accent);
}

/* --------------------------------------------------------------------------
   CONTENT
   -------------------------------------------------------------------------- */

.cw-legal-content{
  min-width:0;
  padding:20px;
  border:1px solid var(--cw-legal-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(10,45,109,.04);
}

.cw-legal-notice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border:1px solid #D5E7EE;
  border-radius:13px;
  background:#F7FCFE;
}

.cw-legal-notice.is-green{
  border-color:#D3E8DC;
  background:#F5FBF7;
}

.cw-legal-notice>svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  display:block;
  margin-top:1px;
  color:var(--cw-legal-accent);
}

.cw-legal-notice.is-green>svg{
  color:var(--cw-legal-green);
}

.cw-legal-notice strong{
  display:block;
  color:var(--cw-legal-primary);
  font-size:11px;
  line-height:1.35;
  font-weight:900;
}

.cw-legal-notice p{
  margin:3px 0 0;
  color:#6B7D90;
  font-size:10.5px;
  line-height:1.65;
}

.cw-legal-section{
  scroll-margin-top:22px;
  padding:22px 0;
  border-bottom:1px solid #E8EFF4;
}

.cw-legal-section:last-of-type{
  border-bottom:0;
}

.cw-legal-section-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:11px;
}

.cw-legal-index{
  width:34px;
  height:34px;
  min-width:34px;
  display:grid;
  place-items:center;
  border:1px solid #CCE8F0;
  border-radius:10px;
  background:#F1FAFD;
  color:var(--cw-legal-primary);
  font-size:9.5px;
  font-weight:950;
}

.cw-legal-section-head h2{
  margin:0;
  color:var(--cw-legal-primary);
  font-size:16px;
  line-height:1.35;
  font-weight:900;
}

.cw-legal-section-head p{
  margin:3px 0 0;
  color:#8997A6;
  font-size:10px;
  line-height:1.55;
}

.cw-legal-section>p{
  margin:0 0 10px;
  color:#56697F;
  font-size:12px;
  line-height:1.82;
}

.cw-legal-section>p:last-child{
  margin-bottom:0;
}

.cw-legal-section strong{
  color:#29435F;
}

.cw-legal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.cw-legal-mini{
  min-width:0;
  padding:12px;
  border:1px solid #E1EAF0;
  border-radius:12px;
  background:#FBFDFE;
}

.cw-legal-mini strong{
  display:block;
  color:var(--cw-legal-primary);
  font-size:10.5px;
  line-height:1.45;
  font-weight:900;
}

.cw-legal-mini span{
  display:block;
  margin-top:4px;
  color:#748497;
  font-size:10px;
  line-height:1.6;
}

.cw-legal-callout{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-bottom:11px;
  padding:12px 13px;
  border:1px solid #D6E8EF;
  border-radius:12px;
  background:#F8FCFE;
}

.cw-legal-callout.is-green{
  border-color:#D2E8DB;
  background:#F4FBF6;
}

.cw-legal-callout>svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
  display:block;
  margin-top:1px;
  color:var(--cw-legal-accent);
}

.cw-legal-callout.is-green>svg{
  color:var(--cw-legal-green);
}

.cw-legal-callout strong{
  display:block;
  color:var(--cw-legal-primary);
  font-size:11px;
  font-weight:900;
  line-height:1.4;
}

.cw-legal-callout span{
  display:block;
  margin-top:3px;
  color:#6D7E90;
  font-size:10.2px;
  line-height:1.65;
}

.cw-legal-list{
  display:grid;
  gap:7px;
  margin:0;
  padding:0 0 0 18px;
  color:#5B6E83;
  font-size:11.5px;
  line-height:1.75;
}

.cw-legal-list-numbered{
  padding-left:19px;
}

.cw-legal-glossary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.cw-legal-glossary>div{
  padding:11px 12px;
  border:1px solid #E1EAF0;
  border-radius:11px;
  background:#FBFDFE;
}

.cw-legal-glossary strong,
.cw-legal-glossary span{
  display:block;
}

.cw-legal-glossary strong{
  color:var(--cw-legal-primary);
  font-size:10.2px;
  font-weight:900;
}

.cw-legal-glossary span{
  margin-top:3px;
  color:#748497;
  font-size:10px;
  line-height:1.6;
}

.cw-legal-contact-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:11px;
}

.cw-legal-contact-grid>div{
  min-width:0;
  padding:11px 12px;
  border:1px solid #E1EAF0;
  border-radius:11px;
  background:#FBFDFE;
}

.cw-legal-contact-grid span,
.cw-legal-contact-grid strong{
  display:block;
}

.cw-legal-contact-grid span{
  color:#8492A0;
  font-size:9px;
  line-height:1.4;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.cw-legal-contact-grid strong{
  margin-top:4px;
  color:#29435F;
  font-size:10px;
  line-height:1.55;
  word-break:break-word;
}

.cw-legal-footer-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding-top:18px;
}

.cw-legal-footer-links a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #D9E6ED;
  border-radius:9px;
  background:#fff;
  color:var(--cw-legal-primary);
  font-size:10px;
  font-weight:850;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.cw-legal-footer-links a:hover{
  transform:translateY(-1px);
  border-color:#BFE2EB;
  background:#F4FBFD;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media(max-width:1050px){
  .cw-legal-hero{
    grid-template-columns:1fr;
  }

  .cw-legal-hero-side{
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    column-gap:10px;
    align-items:center;
  }

  .cw-legal-hero-side-icon{
    grid-row:span 2;
    margin:0;
  }

  .cw-legal-layout{
    grid-template-columns:230px minmax(0,1fr);
  }

  .cw-legal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .cw-legal-page{
    padding:14px 0 36px;
  }

  .cw-legal-shell{
    width:calc(100% - 20px);
  }

  .cw-legal-hero-main{
    padding:24px 20px;
  }

  .cw-legal-hero-main h1{
    font-size:29px;
  }

  .cw-legal-layout{
    grid-template-columns:1fr;
    gap:12px;
  }

  .cw-legal-toc{
    position:static;
  }

  .cw-legal-toc-head{
    cursor:pointer;
  }

  .cw-legal-toc-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    padding:5px 9px;
    border:1px solid #D6E7EE;
    border-radius:8px;
    background:#fff;
    color:var(--cw-legal-primary);
    font:inherit;
    font-size:8.5px;
    font-weight:850;
  }

  .cw-legal-toc.is-collapsed .cw-legal-toc-nav{
    display:none;
  }

  .cw-legal-content{
    padding:16px;
  }

  .cw-legal-grid,
  .cw-legal-glossary,
  .cw-legal-contact-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .cw-legal-shell{
    width:calc(100% - 14px);
  }

  .cw-legal-hero-main h1{
    font-size:26px;
  }

  .cw-legal-hero-main>p{
    font-size:12px;
    line-height:1.7;
  }

  .cw-legal-section-head h2{
    font-size:15px;
  }

  .cw-legal-section>p{
    font-size:11px;
    line-height:1.75;
  }

  .cw-legal-footer-links{
    display:grid;
    grid-template-columns:1fr;
  }

  .cw-legal-footer-links a{
    width:100%;
    justify-content:center;
  }
}

@media(prefers-reduced-motion:reduce){
  .cw-legal-page{
    scroll-behavior:auto;
  }
  .cw-legal-toc-nav a,
  .cw-legal-footer-links a{
    transition:none;
  }
}
