/* =========================================================
   LEADSLANE TERMS AND CONDITIONS
   Page-specific styles. Header and footer use style.css.
   ========================================================= */

.ls-terms-main {
  background:
    linear-gradient(180deg, #ffffff 0 340px, #f3f6f9 340px 100%);
}

.ls-terms-hero {
  padding: 66px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(221, 39, 41, 0.3), transparent 28%),
    linear-gradient(135deg, #172044 0%, #263b68 100%);
}

.ls-terms-breadcrumbs {
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.ls-terms-breadcrumbs a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.ls-terms-breadcrumbs a:hover {
  color: #ffffff;
}

.ls-terms-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
}

.ls-terms-hero .ls-eyebrow {
  color: #ffb6b7;
}

.ls-terms-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.ls-terms-hero p {
  max-width: 730px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.65;
}

.ls-terms-date {
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ls-terms-date span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ls-terms-date strong {
  color: #ffffff;
  font-size: 15px;
}

.ls-terms-section {
  padding: 70px 0 96px;
}

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

.ls-terms-sidebar {
  position: sticky;
  top: 128px;
}

.ls-terms-sidebar__card {
  padding: 22px;
  border: 1px solid rgba(36, 47, 95, 0.11);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 32, 68, 0.07);
}

.ls-terms-sidebar__card > span {
  display: block;
  margin-bottom: 15px;
  color: #172044;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ls-terms-sidebar nav {
  display: grid;
  gap: 2px;
}

.ls-terms-sidebar a {
  padding: 8px 9px;
  border-radius: 8px;
  color: #626b7b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.ls-terms-sidebar a:hover,
.ls-terms-sidebar a:focus-visible {
  background: #f8eeee;
  color: #dd2729;
}

.ls-terms-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.ls-terms-card {
  position: relative;
  scroll-margin-top: 130px;
  padding: 38px 42px;
  overflow: hidden;
  border: 1px solid rgba(36, 47, 95, 0.1);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 32, 68, 0.055);
}

.ls-terms-number {
  position: absolute;
  top: 26px;
  right: 30px;
  color: rgba(38, 59, 104, 0.08);
  font-size: 52px;
  font-weight: 850;
  line-height: 1;
}

.ls-terms-card h2 {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 72px);
  margin: 0 0 20px;
  color: #172044;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ls-terms-card h3 {
  margin: 0 0 8px;
  color: #263b68;
  font-size: 16px;
  line-height: 1.3;
}

.ls-terms-card p {
  margin: 0 0 16px;
  color: #4f596a;
  font-size: 14px;
  line-height: 1.72;
}

.ls-terms-card p:last-child {
  margin-bottom: 0;
}

.ls-terms-card a {
  color: #c82124;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ls-terms-card ul {
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.ls-terms-card li {
  position: relative;
  padding-left: 22px;
  color: #4f596a;
  font-size: 14px;
  line-height: 1.58;
}

.ls-terms-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dd2729;
}

.ls-terms-contact-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(36, 47, 95, 0.11);
  border-radius: 13px;
  overflow: hidden;
  background: #f6f8fa;
}

.ls-terms-contact-card > div {
  min-width: 0;
  padding: 17px 19px;
}

.ls-terms-contact-card > div:nth-child(even) {
  border-left: 1px solid rgba(36, 47, 95, 0.1);
}

.ls-terms-contact-card > div:nth-child(n + 3) {
  border-top: 1px solid rgba(36, 47, 95, 0.1);
}

.ls-terms-contact-card span {
  display: block;
  margin-bottom: 5px;
  color: #7b8493;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ls-terms-contact-card strong,
.ls-terms-contact-card a {
  color: #172044;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ls-terms-data-grid {
  margin: 25px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ls-terms-data-grid article {
  padding: 20px;
  border-radius: 12px;
  background: #f3f6f9;
}

.ls-terms-data-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
}

.ls-terms-notice {
  padding: 17px 19px;
  border-left: 4px solid #dd2729;
  border-radius: 10px;
  background: #fff5f4;
}

.ls-terms-notice strong {
  display: block;
  color: #9e2023;
  font-size: 13px;
}

.ls-terms-notice p {
  margin: 5px 0 0;
  font-size: 12px;
}

.ls-terms-table-wrap {
  margin: 25px 0;
  overflow-x: auto;
  border: 1px solid rgba(36, 47, 95, 0.11);
  border-radius: 12px;
}

.ls-terms-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

.ls-terms-table th,
.ls-terms-table td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(36, 47, 95, 0.09);
  vertical-align: top;
  text-align: left;
}

.ls-terms-table th {
  background: #263b68;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ls-terms-table td {
  color: #525c6c;
  font-size: 12px;
  line-height: 1.55;
}

.ls-terms-table tbody tr:last-child td {
  border-bottom: 0;
}

.ls-terms-retention-grid {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.ls-terms-retention-grid > div {
  padding: 17px 18px;
  border: 1px solid rgba(36, 47, 95, 0.09);
  border-radius: 11px;
  background: #f7f9fb;
}

.ls-terms-retention-grid span {
  display: block;
  margin-bottom: 6px;
  color: #747e8e;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.ls-terms-retention-grid strong {
  color: #172044;
  font-size: 13px;
  line-height: 1.45;
}

.ls-terms-rights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.ls-terms-ico {
  margin: 17px 0;
  padding: 17px 19px;
  border-radius: 11px;
  background: #f3f6f9;
  color: #4f596a;
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.ls-terms-final-contact {
  margin: 20px 0;
  padding: 20px;
  display: grid;
  gap: 5px;
  border-radius: 12px;
  background: #172044;
  color: rgba(255, 255, 255, 0.7);
}

.ls-terms-final-contact strong {
  color: #ffffff;
  font-size: 16px;
}

.ls-terms-final-contact span {
  font-size: 13px;
}

.ls-terms-final-contact a {
  width: fit-content;
  color: #ffb6b7;
}

.ls-terms-card--changes {
  border-color: rgba(221, 39, 41, 0.15);
  background: #fff8f7;
}

.ls-terms-card--changes h2 {
  max-width: none;
  font-size: 24px;
}

@media (max-width: 980px) {
  .ls-terms-layout {
    grid-template-columns: 1fr;
  }

  .ls-terms-sidebar {
    position: static;
  }

  .ls-terms-sidebar__card nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
}

@media (max-width: 720px) {
  .ls-terms-main {
    background:
      linear-gradient(180deg, #ffffff 0 280px, #f3f6f9 280px 100%);
  }

  .ls-terms-hero {
    padding: 42px 0 52px;
  }

  .ls-terms-breadcrumbs {
    margin-bottom: 30px;
  }

  .ls-terms-hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 25px;
  }

  .ls-terms-hero h1 {
    font-size: 50px;
  }

  .ls-terms-hero p {
    font-size: 14px;
  }

  .ls-terms-date {
    min-width: 0;
    width: 100%;
  }

  .ls-terms-section {
    padding: 42px 0 64px;
  }

  .ls-terms-sidebar__card nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ls-terms-card {
    padding: 30px 22px;
    border-radius: 14px;
  }

  .ls-terms-number {
    top: 23px;
    right: 20px;
    font-size: 42px;
  }

  .ls-terms-card h2 {
    max-width: calc(100% - 55px);
    font-size: 27px;
  }

  .ls-terms-contact-card,
  .ls-terms-data-grid,
  .ls-terms-retention-grid,
  .ls-terms-rights {
    grid-template-columns: 1fr;
  }

  .ls-terms-contact-card > div:nth-child(even) {
    border-left: 0;
  }

  .ls-terms-contact-card > div + div {
    border-top: 1px solid rgba(36, 47, 95, 0.1);
  }
}

@media (max-width: 460px) {
  .ls-terms-sidebar__card nav {
    grid-template-columns: 1fr;
  }

  .ls-terms-hero h1 {
    font-size: 43px;
  }
}


/* Terms-specific components */

.ls-terms-steps {
  margin: 20px 0 24px !important;
  padding: 0 !important;
  counter-reset: terms-step;
  display: grid;
  gap: 10px;
  list-style: none;
}

.ls-terms-steps li {
  counter-increment: terms-step;
  min-height: 48px;
  padding: 12px 14px 12px 54px !important;
  display: flex;
  align-items: center;
  border: 1px solid rgba(36, 47, 95, 0.1);
  border-radius: 10px;
  background: #f7f9fb;
}

.ls-terms-steps li::before {
  content: counter(terms-step) !important;
  top: 50% !important;
  left: 13px !important;
  width: 28px !important;
  height: 28px !important;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: #263b68 !important;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.ls-terms-warning {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(221, 39, 41, 0.17);
  border-left: 4px solid #dd2729;
  border-radius: 11px;
  background: #fff5f4;
}

.ls-terms-warning strong {
  display: block;
  color: #9e2023;
  font-size: 14px;
}

.ls-terms-warning p {
  margin: 6px 0 0;
  font-size: 12px;
}

.ls-terms-final-contact {
  margin: 20px 0 0;
  padding: 20px;
  display: grid;
  gap: 5px;
  border-radius: 12px;
  background: #172044;
  color: rgba(255, 255, 255, 0.7);
}

.ls-terms-final-contact strong {
  color: #ffffff;
  font-size: 16px;
}

.ls-terms-final-contact span {
  font-size: 13px;
}

.ls-terms-final-contact a {
  width: fit-content;
  color: #ffb6b7;
}
