/* =============================================
   legal.css — Terms & Privacy Pages
   BuildingXpert — Chennai
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #fdf8f2;
  --warm-white: #fff9f2;
  --sand:       #f2e8d9;
  --sand-dark:  #e8d9c4;
  --brown-lt:   #c8a882;
  --brown:      #8b5e3c;
  --brown-dark: #5c3d1e;
  --orange:     #e8650a;
  --orange-lt:  #f5841f;
  --orange-glow:#ffd4a8;
  --teal:       #1a6b7c;
  --teal-lt:    #2a8fa3;
  --text:       #2e1f0e;
  --text-mid:   #6b4c30;
  --text-muted: #a07d5a;
  --surface:    #fef4e8;
  --surface2:   #f9efe0;
  --radius:     10px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 6%;
  background: rgba(253,248,242,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--sand-dark);
  box-shadow: 0 2px 20px rgba(139,94,60,0.1);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 55px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s; position: relative; white-space: nowrap;
}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width .3s; }
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: #fff;
  padding: .52rem 1.3rem; border-radius: 6px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, transform .15s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(232,101,10,.35);
}
.nav-cta:hover { background: var(--orange-lt); transform: translateY(-2px); }
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; cursor: pointer; padding: 0;
  z-index: 10000; position: relative; flex-shrink: 0;
  width: 40px; height: 40px;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--brown-dark); border-radius: 2px;
  transform-origin: center;
  transition: transform .4s cubic-bezier(.23,1,.32,1), opacity .3s, width .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO BANNER ── */
.legal-hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, #3d2210 100%);
  padding: 9rem 6% 5rem;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(232,101,10,.08);
}
.legal-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(232,101,10,.05);
}
.legal-hero-inner { position: relative; z-index: 2; max-width: 700px; }
.legal-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(232,101,10,.2);
  border: 1.5px solid rgba(232,101,10,.6);
  padding: .4rem 1rem; border-radius: 30px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #ffd4a8; margin-bottom: 1.4rem;
}
.legal-badge::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange-lt); flex-shrink: 0;
}
.legal-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .92; letter-spacing: .04em;
  color: #fff; margin-bottom: 1.2rem;
}
.legal-hero h1 em { font-style: normal; color: var(--orange-lt); }
.legal-hero p {
  font-size: 1rem; line-height: 1.8;
  color: rgba(255,255,255,.75);
  font-weight: 500; max-width: 520px;
}
.legal-meta {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.legal-meta-item {
  display: flex; flex-direction: column; gap: .2rem;
}
.legal-meta-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
.legal-meta-value {
  font-size: .88rem; font-weight: 700; color: var(--orange-glow);
}

/* ── MAIN LAYOUT ── */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 6%;
  align-items: start;
}

/* ── SIDEBAR TOC ── */
.legal-toc {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(139,94,60,.08);
}
.legal-toc h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: .1em;
  color: var(--brown-dark); margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--orange);
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.legal-toc ul li a {
  font-size: .82rem; font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .6rem; border-radius: 6px;
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
.legal-toc ul li a::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--sand-dark);
  flex-shrink: 0; transition: background .2s;
}
.legal-toc ul li a:hover {
  color: var(--orange);
  background: var(--surface);
}
.legal-toc ul li a:hover::before { background: var(--orange); }

/* ── CONTENT ── */
.legal-content { min-width: 0; }

.legal-section {
  background: #fff;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--orange);
  box-shadow: 0 4px 16px rgba(139,94,60,.06);
  transition: box-shadow .3s;
}
.legal-section:hover {
  box-shadow: 0 8px 28px rgba(139,94,60,.12);
}
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--orange); color: #fff;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: .06em;
  margin-bottom: 1rem; flex-shrink: 0;
}
.legal-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; letter-spacing: .08em;
  color: var(--brown-dark); margin-bottom: 1rem;
}
.legal-section p {
  font-size: .92rem; line-height: 1.85;
  color: var(--text-mid); font-weight: 500;
  margin-bottom: .9rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none;
  display: flex; flex-direction: column; gap: .6rem;
  margin: .8rem 0;
}
.legal-section ul li {
  font-size: .9rem; line-height: 1.7;
  color: var(--text-mid); font-weight: 500;
  display: flex; align-items: flex-start; gap: .7rem;
}
.legal-section ul li::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
  margin-top: .45rem;
}

/* highlight box */
.legal-highlight {
  background: var(--surface);
  border: 1.5px solid var(--sand-dark);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}
.legal-highlight p {
  font-size: .88rem; color: var(--teal);
  font-weight: 700; margin: 0;
}

/* warning box */
.legal-warning {
  background: rgba(232,101,10,.06);
  border: 1.5px solid rgba(232,101,10,.3);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}
.legal-warning p {
  font-size: .88rem; color: var(--orange);
  font-weight: 700; margin: 0;
}

/* contact card */
.legal-contact-card {
  background: linear-gradient(135deg, var(--teal) 0%, #0f4f5e 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 1.5rem;
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem; flex-wrap: wrap;
}
.legal-contact-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: .08em;
  color: #fff; margin-bottom: .5rem;
}
.legal-contact-card p {
  font-size: .88rem; color: rgba(255,255,255,.75);
  font-weight: 500; line-height: 1.7;
}
.legal-contact-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.lcb { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .15s, opacity .2s; }
.lcb:hover { transform: translateY(-2px); opacity: .92; }
.lcb-call { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(232,101,10,.4); }
.lcb-wa   { background: #25D366; color: #fff; }
.lcb-mail { background: #fff; color: var(--teal); }

/* ── FOOTER ── */
footer {
  background: var(--brown-dark);
  padding: 4rem 6% 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1.5px solid rgba(255,255,255,.1);
}
.footer-brand .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: .1em;
  color: #fff; margin-bottom: 1rem; display: block;
}
.footer-brand .logo span { color: var(--orange-lt); }
.footer-brand p {
  font-size: .84rem; line-height: 1.75;
  color: rgba(255,255,255,.5);
  max-width: 260px; font-weight: 500;
}
.footer-col h4 {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-glow); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col ul a {
  font-size: .84rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s; font-weight: 500;
}
.footer-col ul a:hover { color: var(--orange-lt); }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.35); font-weight: 500; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform .15s, opacity .2s;
}
.footer-social a:hover { transform: translateY(-3px); opacity: .88; }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: flex; align-items: center; gap: .75rem;
  background: #25D366; color: #fff; text-decoration: none;
  border-radius: 50px; padding: .75rem 1.3rem .75rem .75rem;
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
  font-family: 'Nunito', sans-serif; font-size: .82rem;
  font-weight: 800; letter-spacing: .05em;
  animation: waPulse 2.5s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); animation: none; }
.wa-icon { width: 38px; height: 38px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-icon svg { width: 26px; height: 26px; }
.wa-text-wrap { display: flex; flex-direction: column; }
.wa-top { font-size: .65rem; font-weight: 700; opacity: .85; letter-spacing: .1em; text-transform: uppercase; }
.wa-bottom { font-size: .88rem; font-weight: 900; }

@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 28px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 40px rgba(37,211,102,.75); }
}

/* ── MOBILE NAV MENU ── */
.menu-header { display: none; }

@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: .5rem 5% !important; justify-content: space-between !important; }
  .nav-logo img { height: 40px; }
  .nav-cta { margin-left: auto !important; margin-right: .6rem !important; padding: .38rem .75rem !important; font-size: .62rem !important; flex-shrink: 0 !important; }
  .hamburger { display: flex !important; width: 40px !important; height: 40px !important; border-radius: 8px !important; background: var(--surface2) !important; border: 1.5px solid var(--sand-dark) !important; }
  .hamburger.open { background: var(--orange) !important; border-color: var(--orange) !important; }
  .hamburger span { background: var(--brown-dark) !important; }
  .hamburger.open span { background: #fff !important; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  .hamburger.open span:nth-child(2) { opacity: 0 !important; width: 0 !important; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }

  .nav-links {
    display: flex !important; flex-direction: column !important; list-style: none !important;
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    height: 100dvh !important; padding: 0 !important; gap: 0 !important;
    z-index: 9999 !important; overflow-y: auto !important;
    background: var(--brown-dark) !important;
    pointer-events: none !important; visibility: hidden;
    opacity: 0; transform: translateY(-10px) !important;
    transition: opacity .32s ease, transform .32s ease, visibility 0s linear .32s !important;
  }
  .nav-links.open {
    pointer-events: all !important; visibility: visible !important;
    opacity: 1 !important; transform: translateY(0) !important;
    transition: opacity .32s ease, transform .32s ease, visibility 0s linear 0s !important;
  }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.07) !important; padding: 0 6%; }
  .nav-links a {
    display: block !important; color: rgba(255,255,255,.78) !important;
    font-size: 1rem !important; font-weight: 700 !important;
    padding: 1rem 0 !important; border-bottom: none !important;
    transition: color .2s !important;
  }
  .nav-links a:hover { color: var(--orange-lt) !important; }
  .nav-links a::after { display: none !important; }

  .legal-hero { padding: 7rem 5% 3.5rem; }
  .legal-hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .legal-layout { padding: 2.5rem 5%; gap: 1.5rem; }
  .legal-section { padding: 1.8rem; }
  .legal-contact-card { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float { bottom: 1.2rem; right: 1.2rem; padding: .6rem; border-radius: 50%; }
  .wa-text-wrap { display: none; }
}

@media (max-width: 480px) {
  .legal-layout { padding: 2rem 4%; }
  .legal-section { padding: 1.4rem; }
  .legal-meta { gap: 1.2rem; }
}