/* ============================================
   Calyzer – Legal pages (Privacy & Terms) – matches index/site
   ============================================ */

/* ----- Ensure full page scroll, no clipping ----- */
html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  overflow-y: auto;
  min-height: 100vh;
}

/* ----- Header: solid background so title/nav don’t overlap ----- */
.appie-header-area {
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 22, 63, 0.08);
}

/* ----- Extra top space so title is not cut by browser/header ----- */
.appie-blog-3-area.appie-blog-6-area {
  padding-top: 7rem;
}

.appie-blog-3-area.appie-blog-6-area .container > .row.justify-content-center:first-of-type {
  margin-top: 0;
  padding-top: 1rem;
}

@media (max-width: 767px) {
  .appie-blog-3-area.appie-blog-6-area {
    padding-top: 5.5rem;
  }
  .appie-blog-3-area.appie-blog-6-area .container > .row.justify-content-center:first-of-type {
    padding-top: 0.75rem;
  }
}

/* ----- Main content layout: sidebar + content ----- */
.privacy-body {
  display: flex;
  gap: 48px;
  padding: 32px 0 4rem;
  align-items: flex-start;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .privacy-body {
    flex-direction: column;
    gap: 32px;
    padding: 24px 0 4rem;
    margin-top: 16px;
  }
}

/* ----- Sticky table of contents ----- */
.privacy-nav {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: 100px;
}

@media (max-width: 991px) {
  .privacy-nav {
    width: 100%;
    position: static;
    top: auto;
  }
}

.privacy-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8f98;
  margin-bottom: 14px;
  padding-bottom: 8px;
}

.privacy-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy-nav-list li {
  margin: 0 0 2px;
}

.privacy-nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #505056;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.privacy-nav-list a:hover,
.privacy-nav-list a:focus {
  background: rgba(50, 50, 118, 0.1);
  color: #323276;
}

/* ----- Content column ----- */
.privacy-content {
  flex: 1;
  min-width: 0;
}

/* ----- Intro block ----- */
.privacy-intro {
  background: #fff;
  border: 1px solid rgba(11, 22, 63, 0.08);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(14, 17, 51, 0.04);
}

.privacy-intro p {
  font-size: 1rem;
  line-height: 1.65;
  color: #505056;
  margin: 0;
}

.privacy-intro strong {
  color: #0b163f;
}

/* ----- Section cards ----- */
.privacy-section {
  background: #fff;
  border: 1px solid rgba(11, 22, 63, 0.08);
  border-radius: 12px;
  padding: 24px 28px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(14, 17, 51, 0.04);
  scroll-margin-top: 100px;
}

.privacy-section:last-of-type {
  margin-bottom: 0;
}

.privacy-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.privacy-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(50, 50, 118, 0.12);
  color: #323276;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.privacy-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0b163f;
  margin: 0;
  line-height: 1.35;
}

.privacy-section p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #505056;
  margin: 0 0 12px;
}

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

.privacy-section ul {
  margin: 0 0 12px;
  padding: 0 0 0 20px;
  list-style: disc;
}

.privacy-section ul li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #505056;
  margin-bottom: 6px;
}

.privacy-section ul li:last-child {
  margin-bottom: 0;
}

.privacy-section a {
  color: #323276;
  text-decoration: none;
  font-weight: 500;
}

.privacy-section a:hover {
  color: #0b163f;
  text-decoration: underline;
}

/* ----- Contact section highlight ----- */
.privacy-section.contact-section {
  background: linear-gradient(135deg, #f0f0f8 0%, #f8f8fc 100%);
  border-color: rgba(50, 50, 118, 0.15);
}

.contact-section .privacy-section-num {
  background: #323276;
  color: #fff;
}

.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #505056;
  margin-bottom: 8px;
}

.contact-details li:last-child {
  margin-bottom: 0;
}

.contact-details a {
  color: #323276;
  font-weight: 500;
}

.contact-details a:hover {
  color: #0b163f;
  text-decoration: underline;
}

/* ----- Responsive tweaks ----- */
@media (max-width: 575px) {
  .privacy-intro,
  .privacy-section {
    padding: 20px 20px 22px;
  }

  .privacy-section-head {
    flex-wrap: wrap;
  }

  .privacy-section-title {
    font-size: 1rem;
  }
}
