/* ============================================================================
   Life Axis India — Legal pages (Privacy Policy / Terms of Use)
   Premium, branded styling that matches lifeaxisindia.com. Self-contained:
   these pages don't load the homepage's inline styles, so the shared chrome
   (navbar, footer, buttons, grid, floats) is recreated here from the same tokens.
   ========================================================================== */

:root{
  --white:#FFFFFF;
  --navy:#0B1F3A;
  --navy-2:#142a4d;
  --navy-deep:#07152A;
  --soft-blue:#4DA6FF;
  --soft-blue-2:#7CC1FF;
  --purple:#8B7AF0;
  --purple-2:#A99BF5;
  --purple-soft:#F2EFFD;
  --gray:#F4F7FB;
  --gray-2:#E6ECF2;
  --muted:#6B7A90;
  --ink:#33415A;
  --surface-1:#F7FAFD;
  --surface-2:#EFF6FC;
  --tint-blue:#EAF4FF;
  --tint-purple:#F2EFFD;
  --amber:#B9791C;
  --amber-bg:#FFF6E7;
  --amber-line:#F3D9A6;
  --shadow-sm:0 4px 14px rgba(11,31,58,0.06);
  --shadow-md:0 12px 32px rgba(11,31,58,0.08);
  --shadow-lg:0 24px 60px rgba(11,31,58,0.12);
  --grad-button:linear-gradient(135deg,#4DA6FF 0%,#8B7AF0 100%);
  --grad-purple:linear-gradient(135deg,#5FA8FF 0%,#8B7AF0 100%);
  --grad-soft:linear-gradient(135deg,#EAF4FF 0%,#F2EFFD 100%);
  --radius-sm:12px;
  --radius:20px;
  --radius-lg:28px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:112px; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--navy);
  background:var(--gray);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
svg{ display:block; }
::selection{ background:rgba(139,122,240,0.22); }

.container{ width:min(1200px,92%); margin:0 auto; }

/* ===== Reading progress bar (injected by legal.js) ===== */
.read-progress{
  position:fixed; top:0; left:0; height:3px; width:0;
  background:var(--grad-button); z-index:1200;
  transition:width .1s linear;
  box-shadow:0 1px 8px rgba(77,166,255,0.5);
}

/* ===== Animated grid background ===== */
.grid-bg{
  --la-cell:32px;
  --la-line:rgba(124,193,255,0.14);
  --la-dot-blue:rgba(124,193,255,0.55);
  --la-dot-green:rgba(169,155,245,0.55);
  isolation:isolate;
}
.grid-bg::before,
.grid-bg::after{ content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; }
.grid-bg::before{
  background-image:
    linear-gradient(to right,  var(--la-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--la-line) 1px, transparent 1px);
  background-size:var(--la-cell) var(--la-cell);
  animation:la-drift 6s linear infinite;
  mask-image:radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image:radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}
@keyframes la-drift{ from{ background-position:0 0; } to{ background-position:var(--la-cell) var(--la-cell); } }
.grid-bg::after{
  background-image:
    radial-gradient(var(--la-dot-blue) 1.6px, transparent 2px),
    radial-gradient(var(--la-dot-green) 1.6px, transparent 2px);
  background-size:150px 150px,190px 190px;
  background-position:0 0,70px 40px;
  opacity:.3;
  animation:la-floatDots 30s linear infinite;
}
@keyframes la-floatDots{ from{ background-position:0 0,70px 40px; } to{ background-position:-150px 100px,-120px 230px; } }
@media (prefers-reduced-motion: reduce){ .grid-bg::before,.grid-bg::after{ animation:none; } }

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:13px 24px; border-radius:999px;
  font-weight:600; font-size:14.5px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--grad-purple); color:var(--white); box-shadow:0 10px 28px rgba(108,86,224,0.32); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(139,122,240,0.45); }

/* ===== Navbar ===== */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:12px 0; transition:all .4s var(--ease);
  background:rgba(255,255,255,0.82);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(11,31,58,0.06);
}
.navbar.scrolled{ background:rgba(255,255,255,0.94); box-shadow:0 6px 30px rgba(11,31,58,0.08); padding:8px 0; }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{ display:flex; align-items:center; gap:12px; }
.logo-img{ height:64px; width:auto; display:block; transition:height .4s var(--ease); filter:drop-shadow(0 2px 5px rgba(11,31,58,0.12)); }
.navbar.scrolled .logo-img{ height:52px; }
.nav-links{ display:flex; gap:28px; align-items:center; list-style:none; }
.nav-links a{ font-size:14px; font-weight:500; color:var(--navy); position:relative; padding:6px 0; transition:color .3s; }
.nav-links a::after{
  content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:0; height:2px; background:var(--grad-button); border-radius:2px; transition:width .3s var(--ease);
}
.nav-links a:hover{ color:var(--soft-blue); }
.nav-links a:hover::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.menu-toggle{ display:none; width:40px; height:40px; border-radius:10px; background:rgba(11,31,58,0.05); align-items:center; justify-content:center; }
.menu-toggle span{ width:18px; height:2px; background:var(--navy); display:block; position:relative; transition:.3s var(--ease); }
.menu-toggle span::before,.menu-toggle span::after{ content:''; position:absolute; left:0; width:18px; height:2px; background:var(--navy); transition:.3s var(--ease); }
.menu-toggle span::before{ top:-6px; }
.menu-toggle span::after{ top:6px; }
.menu-toggle.open span{ background:transparent; }
.menu-toggle.open span::before{ top:0; transform:rotate(45deg); }
.menu-toggle.open span::after{ top:0; transform:rotate(-45deg); }

@media (max-width:960px){
  .logo-img{ height:58px; }
  .navbar.scrolled .logo-img{ height:50px; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background:rgba(255,255,255,0.97); backdrop-filter:blur(18px);
    flex-direction:column; padding:24px; gap:18px;
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:all .3s var(--ease); border-bottom:1px solid rgba(11,31,58,0.06);
    box-shadow:0 18px 40px rgba(11,31,58,0.10);
  }
  .nav-links.open{ transform:translateY(0); opacity:1; pointer-events:all; }
  .menu-toggle{ display:flex; }
  .nav-cta .btn{ padding:10px 18px; font-size:13px; }
}
@media (max-width:520px){ .nav-cta .btn-text{ display:none; } .logo-img{ height:50px; } }

/* ============================================================================
   HERO
   ========================================================================== */
.legal-hero{
  position:relative; overflow:hidden;
  padding:150px 0 84px;
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(77,166,255,0.30), transparent 60%),
    radial-gradient(820px 520px at 100% 0%, rgba(139,122,240,0.34), transparent 60%),
    linear-gradient(160deg,#0B1F3A 0%,#102a4d 55%,#0c2342 100%);
  color:#fff;
  isolation:isolate;
}
.legal-hero::after{
  content:''; position:absolute; left:0; right:0; bottom:-1px; height:80px; z-index:-1;
  background:linear-gradient(180deg, transparent, var(--gray));
}
.legal-hero .grid-bg,
.legal-hero.grid-bg{ --la-line:rgba(124,193,255,0.10); }

.breadcrumb{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:500; color:rgba(255,255,255,0.66); margin-bottom:22px; }
.breadcrumb a{ color:rgba(255,255,255,0.8); transition:color .25s; }
.breadcrumb a:hover{ color:#fff; }
.breadcrumb svg{ width:15px; height:15px; opacity:.6; }
.breadcrumb span{ color:#fff; font-weight:600; }

.legal-hero h1{
  font-size:clamp(34px,5.4vw,58px); font-weight:800; line-height:1.06; letter-spacing:-0.02em;
  max-width:16ch;
}
.legal-hero h1 span{
  background:linear-gradient(120deg,#7CC1FF 0%,#A99BF5 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.legal-hero .lede{
  margin-top:20px; max-width:62ch;
  font-size:clamp(15.5px,1.6vw,18.5px); line-height:1.7; color:rgba(255,255,255,0.82); font-weight:300;
}
.updated-pill{
  display:inline-flex; align-items:center; gap:9px; margin-top:28px;
  padding:9px 18px; border-radius:999px; font-size:13px; font-weight:500;
  color:#EAF4FF;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.updated-pill svg{ width:16px; height:16px; color:var(--soft-blue-2); }

/* ============================================================================
   CONTENT LAYOUT
   ========================================================================== */
.legal-section{ padding:0 0 88px; position:relative; }
.legal-layout{
  display:grid; grid-template-columns:280px minmax(0,1fr); gap:40px;
  align-items:start; margin-top:-44px;
}

/* ----- Table of contents (sticky glass card) ----- */
.toc{
  position:sticky; top:104px;
  background:rgba(255,255,255,0.7);
  border:1px solid rgba(255,255,255,0.9);
  box-shadow:var(--shadow-md);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-radius:var(--radius); padding:22px 20px;
  max-height:calc(100vh - 132px); overflow-y:auto;
  scrollbar-width:thin;
}
.toc::-webkit-scrollbar{ width:6px; }
.toc::-webkit-scrollbar-thumb{ background:var(--gray-2); border-radius:999px; }
.toc-toggle{ display:none; }
.toc h4{
  font-size:12px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--muted); margin-bottom:14px; padding-left:2px;
}
.toc ol{ list-style:none; counter-reset:toc; display:flex; flex-direction:column; gap:2px; }
.toc li{ counter-increment:toc; }
.toc a{
  display:flex; gap:10px; align-items:baseline;
  font-size:13.5px; line-height:1.45; color:var(--ink); font-weight:500;
  padding:8px 12px; border-radius:10px;
  border-left:2px solid transparent;
  transition:background .2s, color .2s, border-color .2s;
}
.toc a::before{ content:counter(toc); font-size:11px; font-weight:700; color:var(--muted); min-width:16px; }
.toc a:hover{ background:var(--surface-2); color:var(--navy); }
.toc a.active{
  background:var(--grad-soft); color:var(--navy); font-weight:600;
  border-left-color:var(--soft-blue);
}
.toc a.active::before{ color:var(--soft-blue); }

/* ----- Article card ----- */
.legal-content{
  background:var(--white);
  border:1px solid var(--gray-2);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:clamp(26px,4vw,56px);
}
.legal-content > section{ scroll-margin-top:112px; padding:34px 0; }
.legal-content > section:first-child{ padding-top:6px; }
.legal-content > section + section{ border-top:1px solid var(--gray-2); }

.legal-content h2{
  display:flex; align-items:center; gap:14px;
  font-size:clamp(20px,2.4vw,26px); font-weight:700; line-height:1.25; letter-spacing:-0.01em;
  color:var(--navy); margin-bottom:18px;
}
.legal-content h2 .num{
  flex:0 0 auto; width:38px; height:38px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; color:#fff;
  background:var(--grad-button);
  box-shadow:0 8px 20px rgba(77,166,255,0.35);
}
.legal-content h3{
  font-size:16px; font-weight:600; color:var(--navy);
  margin:24px 0 10px;
}
.legal-content h3:first-of-type{ margin-top:6px; }
.legal-content p{ color:var(--ink); font-size:15.5px; line-height:1.8; margin-bottom:14px; }
.legal-content p:last-child{ margin-bottom:0; }
.legal-content strong{ color:var(--navy); font-weight:600; }
.legal-content a:not(.btn){
  color:#3A78D6; font-weight:500; border-bottom:1px solid rgba(58,120,214,0.35);
  transition:color .2s, border-color .2s;
}
.legal-content a:not(.btn):hover{ color:var(--purple); border-color:var(--purple); }

.legal-content ul{ list-style:none; margin:6px 0 16px; display:flex; flex-direction:column; gap:11px; }
.legal-content ul li{
  position:relative; padding-left:30px;
  font-size:15.5px; line-height:1.7; color:var(--ink);
}
.legal-content ul li::before{
  content:''; position:absolute; left:6px; top:9px;
  width:8px; height:8px; border-radius:50%;
  background:var(--grad-button);
  box-shadow:0 0 0 4px rgba(77,166,255,0.12);
}

/* ----- Placeholder tokens ----- */
.placeholder{
  display:inline-block; padding:1px 8px; border-radius:7px;
  font-size:0.92em; font-weight:500; color:#7A5AD0;
  background:var(--tint-purple); border:1px dashed rgba(139,122,240,0.5);
}

/* ----- Callouts ----- */
.callout{
  display:flex; gap:14px; align-items:flex-start;
  margin:6px 0 18px; padding:18px 20px;
  background:var(--tint-blue);
  border:1px solid rgba(77,166,255,0.22);
  border-left:4px solid var(--soft-blue);
  border-radius:14px;
}
.callout .ic{ flex:0 0 auto; width:24px; height:24px; color:var(--soft-blue); margin-top:1px; }
.callout p{ margin:0; font-size:14.5px; line-height:1.7; color:var(--navy-2); }
.callout.warn{
  background:var(--amber-bg);
  border-color:var(--amber-line);
  border-left-color:#E0A53C;
}
.callout.warn .ic{ color:#D7912E; }
.callout.warn p{ color:#6B5219; }

/* ----- Contact card ----- */
.contact-card{
  margin:14px 0 6px; padding:22px 24px;
  background:var(--grad-soft);
  border:1px solid rgba(139,122,240,0.18);
  border-radius:16px;
  display:flex; flex-direction:column; gap:14px;
  box-shadow:var(--shadow-sm);
}
.contact-card .row{ display:flex; align-items:center; gap:13px; font-size:15px; color:var(--navy); font-weight:500; }
.contact-card .row svg{
  flex:0 0 auto; width:20px; height:20px; padding:9px; box-sizing:content-box;
  color:#fff; background:var(--grad-button); border-radius:10px;
  box-shadow:0 6px 16px rgba(77,166,255,0.35);
}
.contact-card .row a{ border:none; }

/* ============================================================================
   FOOTER
   ========================================================================== */
footer{ background:var(--navy-deep); color:rgba(255,255,255,0.7); padding:60px 0 24px; position:relative; }
.footer-grid{
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:40px;
  padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.08);
}
.footer-logo{ display:inline-flex; }
.footer-logo-img{ height:52px; width:auto; display:block; margin-bottom:6px; }
.footer-brand p{ margin:16px 0 18px; font-size:14px; max-width:320px; line-height:1.7; }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center; transition:all .3s;
}
.footer-socials a:hover{ background:var(--grad-button); transform:translateY(-2px); }
.footer-socials svg{ width:16px; height:16px; color:#fff; }
footer h5{ color:#fff; font-size:15px; margin-bottom:18px; font-weight:600; }
.footer-links{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a{ font-size:14px; transition:color .25s; }
.footer-links a:hover{ color:var(--soft-blue-2); }
.footer-contact-item{ display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; font-size:14px; }
.footer-contact-item svg{ width:18px; height:18px; color:var(--soft-blue); flex-shrink:0; margin-top:2px; }
.footer-bottom{
  padding-top:24px; text-align:center; font-size:13px; color:rgba(255,255,255,0.5);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.footer-bottom a{ color:rgba(255,255,255,0.6); }
.footer-bottom a:hover{ color:#fff; }

@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } .footer-bottom{ justify-content:center; } }

/* ============================================================================
   FLOATING ACTIONS
   ========================================================================== */
.wa-float{
  position:fixed; bottom:24px; right:24px; width:58px; height:58px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px rgba(37,211,102,0.5); z-index:999; transition:transform .3s var(--ease);
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:28px; height:28px; color:#fff; }

.to-top{
  position:fixed; bottom:92px; right:24px; width:46px; height:46px; border-radius:50%;
  background:var(--grad-button); color:#fff; z-index:999;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(77,166,255,0.45);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top:hover{ transform:translateY(-3px); }
.to-top svg{ width:22px; height:22px; }
@media (max-width:600px){
  .wa-float{ width:48px; height:48px; bottom:16px; right:16px; }
  .wa-float svg{ width:24px; height:24px; }
  .to-top{ right:16px; bottom:76px; width:42px; height:42px; }
}

/* ============================================================================
   RESPONSIVE — collapse TOC to an accordion under the hero
   ========================================================================== */
@media (max-width:920px){
  .legal-layout{ grid-template-columns:1fr; gap:20px; margin-top:-30px; }
  .toc{
    position:static; max-height:none; top:auto;
    padding:0; overflow:visible; background:rgba(255,255,255,0.9);
  }
  .toc h4{ display:none; }
  .toc-toggle{
    display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
    padding:16px 20px; font-size:14.5px; font-weight:600; color:var(--navy);
  }
  .toc-toggle svg{ width:18px; height:18px; transition:transform .3s var(--ease); color:var(--muted); }
  .toc.open .toc-toggle svg{ transform:rotate(180deg); }
  .toc ol{
    max-height:0; overflow:hidden; padding:0 14px;
    transition:max-height .35s var(--ease), padding .35s var(--ease);
  }
  .toc.open ol{ max-height:90vh; overflow-y:auto; padding:0 14px 16px; }
}
@media (max-width:560px){
  .legal-hero{ padding:128px 0 70px; }
  .legal-content{ padding:22px 18px; }
  .legal-content h2{ gap:11px; }
  .legal-content h2 .num{ width:32px; height:32px; border-radius:10px; font-size:13px; }
  .contact-card{ padding:18px; }
}
