/* =========================================================
   INSPERIA TECHNOLOGY - LEGAL PAGES
   Privacy Policy + Terms of Use
   Scoped only to .legal-page
   ========================================================= */

.legal-page {
  background: #f7f9fc;
  color: #334155;
}

.legal-page .page-title {
  min-height: 330px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 145px 20px 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(49, 125, 255, 0.22), transparent 32%),
    radial-gradient(circle at 85% 70%, rgba(0, 198, 255, 0.14), transparent 32%),
    linear-gradient(135deg, #071b3c 0%, #0a2856 52%, #0d3973 100%);
}

.legal-page .page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.legal-page .page-title .container {
  position: relative;
  z-index: 2;
}

.legal-page .legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  background: rgba(255,255,255,.08);
  color: #bcdcff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.legal-page .page-title h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 17px;
}

.legal-page .page-title .legal-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.7;
}

.legal-page .legal-effective-date {
  display: inline-flex;
  margin-top: 24px;
  padding: 9px 15px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: #d9eaff;
  border-radius: 10px;
  font-size: 13px;
}

.legal-page .legal-main {
  padding: 70px 0 90px;
}

.legal-page .legal-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.legal-page .legal-sidebar {
  position: sticky;
  top: 115px;
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(5, 44, 101, .06);
}

.legal-page .legal-sidebar-title {
  color: #0b2854;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.legal-page .legal-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-page .legal-sidebar a {
  color: #607086;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  transition: .2s ease;
}

.legal-page .legal-sidebar a:hover {
  color: #0758c9;
  background: #eef5ff;
}

.legal-page .legal-intro {
  padding: 25px 28px;
  margin-bottom: 24px;
  border-radius: 16px;
  border: 1px solid #dbe8fb;
  background: linear-gradient(135deg, #f2f7ff, #fff);
  color: #52657e;
  font-size: 15px;
  line-height: 1.8;
}

.legal-page .legal-section {
  scroll-margin-top: 120px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 30px 32px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(4, 39, 92, .045);
}

.legal-page .legal-section h2 {
  color: #0b2854;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 18px;
}

.legal-page .legal-section h3 {
  color: #164784;
  font-size: 17px;
  font-weight: 750;
  margin: 24px 0 10px;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
  color: #56667a;
  line-height: 1.8;
  font-size: 15px;
}

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

.legal-page .legal-section ul {
  margin: 10px 0 5px;
  padding-left: 20px;
}

.legal-page .legal-section li {
  margin-bottom: 7px;
}

.legal-page .legal-note {
  margin-top: 18px;
  padding: 17px 20px;
  border-left: 4px solid #1473e6;
  background: #f2f7ff;
  border-radius: 0 10px 10px 0;
}

.legal-page .legal-contact-card {
  background: linear-gradient(135deg, #071e44, #0d3973);
  border-radius: 18px;
  padding: 32px;
  color: #fff;
}

.legal-page .legal-contact-card h2,
.legal-page .legal-contact-card p,
.legal-page .legal-contact-card a {
  color: #fff;
}

.legal-page .legal-contact-card h2 {
  margin-bottom: 14px;
}

.legal-page .legal-contact-card a {
  text-decoration: none;
}

.legal-page .legal-contact-card a:hover {
  text-decoration: underline;
}

.legal-page .legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 22px;
  margin-top: 22px;
}

.legal-page .legal-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.legal-page .legal-contact-item i {
  color: #8cc6ff;
  font-size: 17px;
  margin-top: 2px;
}

@media (max-width: 991px) {
  .legal-page .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-sidebar {
    position: static;
  }

  .legal-page .legal-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 575px) {
  .legal-page .page-title {
    min-height: 300px;
    padding: 125px 16px 55px;
  }

  .legal-page .legal-main {
    padding: 45px 0 65px;
  }

  .legal-page .legal-section {
    padding: 24px 20px;
  }

  .legal-page .legal-sidebar nav,
  .legal-page .legal-contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-contact-card {
    padding: 25px 21px;
  }
}
