.shared-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-main);
  color: var(--text-primary);
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.shared-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(108, 99, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(108, 99, 255, 0.08), transparent 30%);
  z-index: -1;
}

.legal-page .legal-page__inner {
  padding-top: 0;
}

.legal-page .shared-hero {
  margin-top: 0;
}

.shared-hero__inner {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.shared-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  width: 100%;
}

.shared-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 24, 38, 0.62);
}

.shared-hero .breadcrumb a,
.shared-hero .breadcrumb span {
  color: inherit;
}

.shared-hero .section-eyebrow,
.shared-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.shared-hero .section-eyebrow::before,
.shared-hero .hero-eyebrow::before {
  content: "•";
  font-size: 1rem;
  color: var(--primary);
}

.shared-hero .category-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  border-radius: 999px;
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 1.4rem;
  color: var(--primary-hover);
}

.shared-hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.shared-hero h1 em {
  font-style: normal;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shared-hero p,
.shared-hero .hero-lead,
.shared-hero .legal-page__meta,
.shared-hero .about-page__lead {
  margin: 0;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(18, 24, 38, 0.75);
}

.shared-hero .hero-search {
  width: min(100%, 560px);
  margin-top: 0.1rem;
}

.shared-hero .search-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.shared-hero .search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.98rem;
  padding: 0.65rem 0.85rem;
}

.shared-hero .search-wrap button {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .shared-hero {
    min-height: 290px;
    padding: 3rem 1rem;
  }

  .shared-hero__inner {
    gap: 0.85rem;
  }

  .shared-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.35rem);
  }

  .shared-hero p,
  .shared-hero .hero-lead,
  .shared-hero .legal-page__meta,
  .shared-hero .about-page__lead {
    font-size: 0.98rem;
  }

  .shared-hero .search-wrap {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.7rem;
  }

  .shared-hero .search-wrap input,
  .shared-hero .search-wrap button {
    width: 100%;
  }
}
