/* DigiCrux Solutions — shared styles for Privacy Policy, Terms & Conditions,
   and Refund & Cancellation Policy. Global tokens come from assets/css/style.css */

*{margin:0;padding:0;box-sizing:border-box;}
body{
  font-family:var(--font-base);
  color:var(--text-body);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
h1,h2,h3,h4{color:var(--navy); font-weight:800; line-height:1.25;}
a{text-decoration:none; color:inherit;}

.container{
  max-width:1160px;
  margin:0 auto;
  padding:0 24px;
}
.section{ padding: var(--space-xl) 0; }

.hero-mesh{
  background:
    radial-gradient(circle at 15% 20%, rgba(46,111,242,0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(15,191,159,0.1) 0%, transparent 45%),
    var(--bg-soft);
}

.eyebrow{
  display:inline-block;
  width:fit-content;
  font-size:11.5px;
  font-weight:700;
  color:var(--brand-blue);
  background:rgba(46,111,242,0.08);
  padding:6px 14px;
  border-radius:999px;
  letter-spacing:.4px;
  text-transform:uppercase;
}

.legal-hero h1{
  font-size:clamp(30px, 4.4vw, 44px);
  letter-spacing:-0.5px;
}
.text-gradient{
  background:var(--gradient-brand);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:14.5px;
  padding:13px 26px;
  border-radius:var(--radius-pill);
  border:none;
  cursor:pointer;
  transition:transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:hover{ transform:translateY(-2px); }
.btn-lg{ padding:15px 30px; font-size:15px; }
.btn-primary{
  background:var(--gradient-brand);
  color:#fff;
}

.reveal{
  animation: dcFadeIn 0.6s var(--ease-out) both;
}
.reveal[data-delay="1"]{ animation-delay:.05s; }
.reveal[data-delay="2"]{ animation-delay:.1s; }
.reveal[data-delay="3"]{ animation-delay:.15s; }
@keyframes dcFadeIn{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

.mb-0{ margin-bottom:0 !important; }

@media (max-width:767px){
  .container{ padding:0 18px; }
}

/* ============================================================
   DIGICRUX SOLUTIONS — PRIVACY POLICY PAGE STYLES
   Extends global assets/css/style.css. Mobile-first responsive.
   Breakpoints: Mobile 320-767 | Tablet 768-1024 | Desktop 1025+
   ============================================================ */

/* ---------- HERO ---------- */
.legal-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.legal-hero .eyebrow { margin-bottom: var(--space-sm); }

.legal-hero h1 {
  margin-bottom: var(--space-sm);
}

.legal-hero .legal-sub {
  max-width: 680px;
  margin: 0 auto var(--space-md);
  font-size: 1.02rem;
  line-height: 1.7;
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.updated-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wa-green);
  flex-shrink: 0;
}

/* ---------- LAYOUT: TOC + CONTENT ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ---------- TABLE OF CONTENTS — DESKTOP (STICKY) ---------- */
.toc-desktop {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

.toc-desktop h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-list { display: flex; flex-direction: column; gap: 2px; }

.toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.4;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.toc-list a .toc-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.toc-list a:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

.toc-list a.is-active {
  background: rgba(11, 92, 203, 0.08);
  color: var(--brand-blue);
}
.toc-list a.is-active .toc-num {
  background: var(--gradient-brand);
  color: var(--white);
}

@media (max-width: 1024px) {
  .toc-desktop { display: none; }
}

/* ---------- TABLE OF CONTENTS — MOBILE/TABLET (COLLAPSIBLE) ---------- */
.toc-mobile {
  display: none;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .toc-mobile { display: block; }
}

.toc-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: none;
  text-align: left;
  font-family: var(--font-base);
  -webkit-tap-highlight-color: transparent;
}

.toc-mobile-toggle .toc-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.toc-mobile-toggle .chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}
.toc-mobile-toggle.is-open .chevron { transform: rotate(180deg); }

.toc-mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
  border-top: 1px solid var(--border-color);
}
.toc-mobile-panel.is-open { max-height: 600px; overflow-y: auto; }

.toc-mobile-panel .toc-list { padding: 10px; }

/* ---------- LEGAL CONTENT ---------- */
.legal-content {
  max-width: 760px;
}

.legal-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-sm);
}

.legal-section-head .section-num {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-section-head h2 {
  font-size: 1.3rem;
  margin: 0;
}

.legal-section p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-body);
}

.legal-section ul {
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-body);
}

.legal-section ul li .li-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  margin-top: 8px;
  flex-shrink: 0;
}

.legal-section .info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
}

.legal-section .info-card strong { color: var(--navy); }

/* Top-of-page intro block */
.legal-intro {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: var(--space-lg);
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- CONTACT CARD (BOTTOM) ---------- */
.legal-contact-card {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-top: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-contact-card h2,
.legal-contact-card p { color: var(--white); }

.legal-contact-card p {
  max-width: 520px;
  margin: 0 auto var(--space-md);
  opacity: 0.92;
}

.legal-contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: var(--space-md);
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}

.legal-contact-item svg { flex-shrink: 0; }

.legal-contact-card .btn-primary {
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: 0 12px 30px rgba(7, 30, 66, 0.25);
}
.legal-contact-card .btn-primary:hover { box-shadow: 0 16px 36px rgba(7, 30, 66, 0.32); }

/* ---------- RESPONSIVE: TABLET (768-1024) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .legal-contact-grid { gap: 16px; }
}

/* ---------- RESPONSIVE: MOBILE (320-767) ---------- */
@media (max-width: 767px) {
  .legal-hero { padding: var(--space-lg) 0 var(--space-md); }
  .legal-hero .legal-sub { font-size: 0.96rem; padding: 0 4px; }

  .legal-section-head { gap: 10px; }
  .legal-section-head .section-num { width: 32px; height: 32px; font-size: 0.85rem; }
  .legal-section-head h2 { font-size: 1.1rem; }

  .legal-section p,
  .legal-section ul li { font-size: 0.92rem; }

  .legal-intro { padding: 18px 16px; font-size: 0.92rem; }
  .legal-section .info-card { padding: 14px 16px; }

  .legal-contact-card { padding: 28px 18px; }
  .legal-contact-item { font-size: 0.82rem; padding: 9px 14px; width: 100%; justify-content: center; }
  .legal-contact-grid { flex-direction: column; align-items: stretch; }

  .legal-contact-card .btn-primary { width: 100%; }
}

/* ---------- TOUCH TARGET MINIMUM (mobile/tablet) ---------- */
@media (max-width: 1024px) {
  .toc-mobile-toggle,
  .toc-list a {
    min-height: 44px;
  }
}

/* ---------- PREVENT HORIZONTAL SCROLL ---------- */
.legal-content,
.legal-layout,
.legal-hero { max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }