/* ==========================================================================
   Legal page presentation layer (Return & Refund Policy / Terms of Service)
   Loaded only by return-policy.php and terms-of-service.php.
   Reuses the site's existing brand colour (#27a9e1), typography (Poppins,
   already loaded sitewide) and the Bootstrap grid already loaded on every
   page. No new framework, no animation library, no JS dependency.
   ========================================================================== */

.legal-page-section{
  background:#f7f9fb;
}

/* ---------- intro / effective-date card ---------- */
.legal-intro{
  background:#ffffff;
  border:1px solid #eaeff2;
  border-radius:12px;
  padding:32px 35px;
  margin-bottom:35px;
  box-shadow:0 10px 30px rgba(20,20,43,0.05);
}

.legal-intro .legal-brand{
  font-weight:700;
  font-size:20px;
  color:#14142b;
  margin-bottom:8px;
}

.legal-intro .legal-lede{
  color:#5b5b76;
  margin-bottom:16px;
}

.legal-date-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(39,169,225,0.1);
  color:#178bbd;
  font-weight:600;
  font-size:13px;
  padding:7px 16px;
  border-radius:30px;
}

.legal-date-badge i{
  color:#27a9e1;
}

/* ---------- quick jump nav ---------- */
.legal-toc{
  list-style:none;
  margin:20px 0 0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.legal-toc li a{
  display:inline-block;
  font-size:13px;
  font-weight:500;
  color:#4a4a63;
  background:#f1f4f7;
  border:1px solid #e4e9ee;
  border-radius:30px;
  padding:7px 16px;
  transition:background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.legal-toc li a:hover{
  background:#27a9e1;
  border-color:#27a9e1;
  color:#ffffff;
}

/* ---------- numbered section cards ---------- */
.legal-section-card{
  background:#ffffff;
  border:1px solid #eaeff2;
  border-radius:12px;
  padding:32px 35px;
  margin-bottom:24px;
  box-shadow:0 10px 30px rgba(20,20,43,0.04);
  scroll-margin-top:120px;
}

.legal-section-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.legal-section-number,
.legal-section-icon{
  flex:none;
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

.legal-section-number{
  background:#27a9e1;
  color:#ffffff;
  font-weight:700;
  font-size:16px;
}

.legal-section-icon{
  background:rgba(39,169,225,0.1);
  color:#27a9e1;
}

.legal-section-head h3{
  margin:0;
  font-size:21px;
  font-weight:700;
  color:#14142b;
}

.legal-section-card p{
  color:#5b5b76;
  line-height:1.8;
  margin-bottom:14px;
}

.legal-section-card p:last-child{
  margin-bottom:0;
}

.legal-section-card p + .legal-list,
.legal-section-card p + .legal-steps{
  margin-top:-4px;
}

/* ---------- icon lists ---------- */
.legal-list{
  list-style:none;
  margin:0 0 16px;
  padding:0;
}

.legal-list li{
  position:relative;
  padding-left:30px;
  margin-bottom:10px;
  color:#5b5b76;
  line-height:1.7;
}

.legal-list li:last-child{
  margin-bottom:0;
}

.legal-list li i{
  position:absolute;
  left:0;
  top:5px;
  font-size:14px;
}

.legal-list-check li i{ color:#28c76f; }
.legal-list-cross li i{ color:#ea5455; }
.legal-list-info li i{ color:#27a9e1; font-size:11px; top:7px; }

/* ---------- highlight callouts ---------- */
.legal-callout{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:rgba(39,169,225,0.06);
  border-left:4px solid #27a9e1;
  border-radius:8px;
  padding:16px 20px;
  margin:6px 0 20px;
}

.legal-callout-warning{
  background:rgba(234,84,85,0.06);
  border-left-color:#ea5455;
}

.legal-callout i{
  font-size:18px;
  color:#27a9e1;
  margin-top:2px;
}

.legal-callout-warning i{
  color:#ea5455;
}

.legal-callout p{
  margin:0 !important;
  color:#3d3d54 !important;
  font-weight:500;
}

/* ---------- numbered process steps ---------- */
.legal-steps{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  counter-reset:legalstep;
}

.legal-steps li{
  position:relative;
  padding:14px 20px 14px 60px;
  margin-bottom:12px;
  background:#f7f9fb;
  border-radius:10px;
  color:#3d3d54;
  font-weight:500;
}

.legal-steps li:last-child{ margin-bottom:0; }

.legal-steps li::before{
  counter-increment:legalstep;
  content:counter(legalstep);
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border-radius:50%;
  background:#27a9e1;
  color:#ffffff;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- responsive ---------- */
@media (max-width:767px){
  .legal-intro{ padding:24px 20px; }
  .legal-section-card{ padding:24px 20px; }
  .legal-section-head{ gap:12px; }
  .legal-section-number,
  .legal-section-icon{ width:38px; height:38px; font-size:14px; }
  .legal-section-head h3{ font-size:18px; }
  .legal-steps li{ padding:12px 16px 12px 54px; }
}

@media (max-width:575px){
  .legal-section-head{ flex-wrap:wrap; }
  .legal-section-head h3{ font-size:17px; }
}
