.legal-page {
  background: #fff;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 66px;
  background:
    radial-gradient(circle at 86% 12%, rgba(22, 112, 234, .12), transparent 28%),
    linear-gradient(135deg, #f7faff 0%, #fff 58%, #edf5ff 100%);
  isolation: isolate;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(22, 112, 234, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 112, 234, .04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.legal-hero-decoration {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(22, 112, 234, .13);
  border-radius: 50%;
  pointer-events: none;
}

.legal-decoration-one {
  width: 390px;
  height: 390px;
  right: -205px;
  top: -210px;
}

.legal-decoration-two {
  width: 240px;
  height: 240px;
  left: -150px;
  bottom: -170px;
}

.legal-hero-inner {
  position: relative;
}

.legal-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
  color: #76899f;
  font-size: 12px;
  font-weight: 700;
}

.legal-breadcrumbs a:hover {
  color: var(--blue-600);
}

.legal-hero h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: 1.03;
  letter-spacing: -.052em;
}

.legal-hero > .container > p,
.legal-hero-inner > p {
  max-width: 790px;
  margin: 0;
  color: #51657c;
  font-size: 17px;
  line-height: 1.8;
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.legal-meta-row span {
  padding: 10px 14px;
  border: 1px solid #d2e1f1;
  border-radius: 999px;
  color: #536980;
  background: rgba(255, 255, 255, .76);
  font-size: 10px;
}

.legal-meta-row strong {
  color: #183c68;
}

.legal-content {
  padding: 76px 0 104px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
}

.legal-sidebar-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fbff, #fff);
  box-shadow: var(--shadow-sm);
}

.legal-sidebar-card > span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-sidebar-card nav {
  display: grid;
  gap: 3px;
}

.legal-sidebar-card a {
  padding: 9px 10px;
  border-radius: 10px;
  color: #52667d;
  font-size: 11px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.legal-sidebar-card a:hover {
  color: #0b4eaa;
  background: #eef6ff;
  transform: translateX(3px);
}

.legal-document {
  min-width: 0;
}

.legal-callout {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 38px;
  padding: 22px;
  border: 1px solid #cfe0f3;
  border-radius: 20px;
  background: #f4f9ff;
}

.legal-callout > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #0e5dcc, #1670ea);
  font-size: 16px;
  font-weight: 800;
}

.legal-callout p {
  margin: 0;
  color: #405b76;
  font-size: 12px;
  line-height: 1.8;
}

.legal-section {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.legal-section-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0f3;
  border-radius: 16px;
  color: var(--blue-600);
  background: #f2f8ff;
  font-size: 11px;
  font-weight: 800;
}

.legal-section h2 {
  margin: 3px 0 14px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 25px;
}

.legal-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-600);
  font-weight: 800;
}

.legal-section a {
  color: #0c59bd;
  font-weight: 700;
}

.legal-contact-box {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #d7e3f0;
  border-radius: 17px;
  background: #f9fbfe;
}

.legal-contact-box p {
  margin: 0;
  font-size: 12px;
}

.legal-contact-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  margin-top: 18px;
  padding: 17px 19px;
  border: 1px solid #bfd7f3;
  border-radius: 17px;
  color: #0a4ea9 !important;
  background: linear-gradient(135deg, #f3f8ff, #fff);
  box-shadow: 0 10px 30px rgba(16, 58, 111, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.legal-contact-action:hover {
  transform: translateY(-3px);
  border-color: #83b5ed;
  box-shadow: 0 18px 42px rgba(16, 58, 111, .11);
}

.legal-contact-action strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar-card nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .legal-hero {
    padding: 42px 0 52px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-hero > .container > p,
  .legal-hero-inner > p {
    font-size: 15px;
  }

  .legal-content {
    padding: 58px 0 78px;
  }

  .legal-sidebar-card nav {
    grid-template-columns: 1fr;
  }

  .legal-callout {
    grid-template-columns: 1fr;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .legal-section-number {
    width: 44px;
    height: 44px;
  }

  .legal-section h2 {
    font-size: 24px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 12px;
  }
}
