.app-legal {
  background: #f8fafc;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(203, 213, 225, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.product-nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.product-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.product-identity img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.identity-copy {
  display: grid;
  line-height: 1.2;
}

.identity-copy strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.identity-copy span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-divider {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

.product-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
}

.product-name svg {
  width: 18px;
  height: 18px;
}

.product-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-links a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.product-links a:hover,
.product-links a[aria-current="page"] {
  background: #eff6ff;
  color: #1d4ed8;
}

.legal-product-hero {
  position: relative;
  padding: 94px 0 76px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.13), transparent 28rem),
    radial-gradient(circle at 12% 95%, rgba(6, 182, 212, 0.1), transparent 24rem),
    #ffffff;
}

.legal-product-hero::after {
  position: absolute;
  top: -180px;
  right: -100px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(37, 99, 235, 0.025), 0 0 0 140px rgba(6, 182, 212, 0.018);
  content: "";
}

.legal-product-hero .container {
  position: relative;
  z-index: 1;
}

.document-type {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-type::before {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  content: "";
}

.legal-product-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-product-hero .lead {
  max-width: 680px;
  margin-bottom: 28px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.76);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}

.legal-product-body {
  padding: 78px 0 112px;
}

.app-legal .legal-layout {
  grid-template-columns: 250px minmax(0, 780px);
  justify-content: space-between;
}

.app-legal .legal-nav {
  top: 106px;
}

.app-legal .legal-nav a {
  line-height: 1.45;
}

.app-legal .legal-content section {
  margin-bottom: 58px;
}

.app-legal .legal-content h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.app-legal .legal-content a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 3px;
}

.app-legal .legal-content a:hover {
  text-decoration-color: currentColor;
}

.app-legal .legal-content li + li {
  margin-top: 9px;
}

.product-legal-footer {
  padding: 42px 0;
  background: #020617;
  color: #ffffff;
}

.product-legal-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.product-legal-footer p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.product-footer-links {
  display: flex;
  gap: 20px;
}

.product-footer-links a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease;
}

.product-footer-links a:hover {
  color: #ffffff;
}

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

  .app-legal .legal-nav {
    position: static;
    columns: 2;
  }
}

@media (max-width: 700px) {
  .product-nav {
    min-height: 68px;
    gap: 14px;
  }

  .identity-copy,
  .product-divider {
    display: none;
  }

  .product-identity img {
    width: 38px;
    height: 38px;
  }

  .product-links {
    gap: 0;
  }

  .product-links a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .legal-product-hero {
    padding: 72px 0 62px;
  }

  .legal-product-body {
    padding: 58px 0 82px;
  }

  .app-legal .legal-nav {
    columns: 1;
  }

  .product-legal-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .product-name span {
    display: none;
  }
}
