/* ==========================================================================
   legal.css — Privacy Policy + Terms & Conditions pages
   --------------------------------------------------------------------------
   1. Page banner — same section as the blog page's .breadcumb-wrapper
      (same background image, overlay, spacing and type), rebuilt here
      because these pages use the site's own CSS stack rather than the old
      blog template (assets/css).
   2. Document layout — "On this page" contents + the policy text.
   3. Typography for the policy text.
   4. Responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE BANNER (matches satkar-infotech-satkar-softwares-blog.html)
   -------------------------------------------------------------------------- */
.lg-banner {
  position: relative;
  padding-top: 160px;
  padding-bottom: 90px;
  background-color: #1a1a1a;
  background-image: url("../assets/images/breadcrumb/breadcrumb.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.lg-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.lg-banner .container {
  position: relative;
  z-index: 2;
}

.lg-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 40px;
}

.lg-banner__title {
  width: 100%;
  max-width: 60%;
  margin: -0.3em 0 -0.35em;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  word-break: break-word;
}

.lg-banner__menu {
  max-width: 100%;
  margin: -0.35em 0;
  padding: 0;
  list-style: none;
}

.lg-banner__menu li {
  display: inline-block;
  position: relative;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #fff;
  white-space: normal;
  word-break: break-word;
}

.lg-banner__menu li::after {
  content: "/";
  position: relative;
  margin: 0 5px 0 10px;
}

.lg-banner__menu li:last-child::after {
  display: none;
}

.lg-banner__menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.lg-banner__menu a:hover,
.lg-banner__menu a:focus-visible {
  color: #8cc3ff;
}

/* --------------------------------------------------------------------------
   2. DOCUMENT LAYOUT
   -------------------------------------------------------------------------- */
.lg-main {
  padding: 64px 0 80px;
  background: #f8faff;
  /* css/style.css gives every <section> overflow:hidden, which turns it into
     the sticky container and stops the contents panel from following the
     scroll. clip still clips but isn't a scroll container. */
  overflow: visible;
  overflow: clip;
}

.lg-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* "On this page" — a <details> so it needs no script: open + sticky on
   desktop, a collapsible panel above the text on smaller screens. */
.lg-toc {
  position: sticky;
  top: 130px;
  background: #fff;
  border: 1px solid rgba(7, 26, 46, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(7, 26, 46, 0.06);
}

.lg-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #071a2e;
  list-style: none;
  cursor: default;
}

.lg-toc summary::-webkit-details-marker {
  display: none;
}

.lg-toc summary i {
  display: none;
  color: #2684e5;
  transition: transform 0.25s ease;
}

.lg-toc__list {
  max-height: calc(100vh - 230px);
  margin: 0;
  padding: 0 12px 16px;
  overflow-y: auto;
  list-style: none;
  border-top: 1px solid rgba(7, 26, 46, 0.08);
}

.lg-toc__list li {
  margin: 0;
}

.lg-toc__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #3e4a5c;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lg-toc__list a:hover,
.lg-toc__list a:focus-visible {
  background: rgba(38, 132, 229, 0.08);
  color: #2684e5;
}

/* group headings (Privacy Policy's 🔐 / 📸 / ⚖️ parts) */
.lg-toc__list .lg-toc__group {
  margin-top: 10px;
}

.lg-toc__list .lg-toc__group a {
  font-weight: 700;
  color: #071a2e;
}

.lg-toc__list .lg-toc__sub a {
  padding-left: 22px;
  font-size: 0.82rem;
}

.lg-doc {
  min-width: 0;
  padding: 48px 56px;
  background: #fff;
  border: 1px solid rgba(7, 26, 46, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(7, 26, 46, 0.06);
}

/* --------------------------------------------------------------------------
   3. POLICY TEXT
   -------------------------------------------------------------------------- */
.lg-doc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: #3e4a5c;
  overflow-wrap: anywhere;
}

.lg-doc > :first-child {
  margin-top: 0;
}

.lg-doc p {
  margin: 0 0 16px;
}

.lg-doc a {
  color: #2684e5;
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 132, 229, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lg-doc a:hover,
.lg-doc a:focus-visible {
  color: #044a9e;
  border-bottom-color: currentColor;
}

.lg-doc strong,
.lg-doc b {
  color: #071a2e;
  font-weight: 700;
}

.lg-doc h2,
.lg-doc h3,
.lg-doc h4 {
  font-family: var(--font-head);
  color: #071a2e;
  scroll-margin-top: 140px;
}

.lg-doc h2 {
  position: relative;
  margin: 44px 0 18px;
  padding-bottom: 12px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 1px solid rgba(7, 26, 46, 0.08);
}

.lg-doc h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: #2684e5;
}

.lg-doc h3 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.lg-doc h4 {
  margin: 22px 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #044a9e;
}

.lg-doc ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.lg-doc li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
}

.lg-doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2684e5;
  box-shadow: 0 0 0 3px rgba(38, 132, 229, 0.15);
}

/* Disclaimer box (Privacy Policy) */
.lg-doc .lg-note {
  margin: 30px 0;
  padding: 20px 24px;
  font-size: 0.92rem;
  color: #3e4a5c;
  background: #f3f8ff;
  border-left: 4px solid #2684e5;
  border-radius: 10px;
}

/* Contact block at the end of each document */
.lg-doc .lg-contact {
  margin-top: 8px;
  padding: 22px 24px;
  line-height: 2;
  background: #f8faff;
  border: 1px solid rgba(7, 26, 46, 0.08);
  border-radius: 12px;
}

/* "End of Terms & Conditions" (Terms) */
.lg-doc .lg-end-rule {
  margin: 40px 0 20px;
  border: 0;
  border-top: 1px dashed rgba(7, 26, 46, 0.2);
  opacity: 1;
}

.lg-doc .lg-end {
  margin: 0;
  font-size: 0.9em;
  color: #7a8695;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .lg-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .lg-doc {
    padding: 40px 40px;
  }
}

@media (max-width: 991.98px) {
  .lg-banner {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .lg-banner__content {
    display: block;
  }

  .lg-banner__title {
    max-width: 100%;
    font-size: 40px;
  }

  .lg-banner__menu {
    margin-top: 15px;
  }

  .lg-main {
    padding: 40px 0 56px;
  }

  .lg-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* contents become a collapsible panel above the text */
  .lg-toc {
    position: static;
  }

  .lg-toc summary {
    cursor: pointer;
  }

  .lg-toc summary i {
    display: inline-block;
  }

  .lg-toc[open] summary i {
    transform: rotate(180deg);
  }

  .lg-toc__list {
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  .lg-banner {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .lg-banner__title {
    font-size: 34px;
  }

  .lg-doc {
    padding: 28px 22px;
    border-radius: 16px;
    font-size: 0.97rem;
  }

  .lg-doc h2 {
    margin-top: 36px;
    font-size: 1.32rem;
  }

  .lg-doc h3 {
    font-size: 1.1rem;
  }

  .lg-doc .lg-note,
  .lg-doc .lg-contact {
    padding: 18px;
  }
}

@media (max-width: 374.98px) {
  .lg-banner__title {
    font-size: 30px;
  }

  .lg-doc {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-banner__menu a,
  .lg-toc summary i,
  .lg-toc__list a,
  .lg-doc a {
    transition: none;
  }
}
