.ipwh-legalhub,
.ipwh-legalhub * {
  box-sizing: border-box;
}

.ipwh-legalhub {
  --ipwh-legalhub-brand: #81221f;
  --ipwh-legalhub-brand-dark: #581411;
  --ipwh-legalhub-brand-soft: #fbf1f0;
  --ipwh-legalhub-ink: #172033;
  --ipwh-legalhub-muted: #5c687a;
  --ipwh-legalhub-line: #dfe4ec;
  --ipwh-legalhub-soft: #f5f7fa;
  --ipwh-legalhub-white: #fff;
  overflow: clip;
  background: var(--ipwh-legalhub-white);
  color: var(--ipwh-legalhub-ink);
  font-family: Arial, sans-serif;
}

.ipwh-legalhub a {
  text-decoration: none;
}

.ipwh-legalhub-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.ipwh-legalhub-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 96px;
  background-color: #0d1625;
  background-image:
    linear-gradient(90deg, rgba(7, 14, 26, 0.97) 0%, rgba(13, 22, 37, 0.91) 52%, rgba(34, 23, 35, 0.64) 78%, rgba(53, 27, 40, 0.38) 100%),
    url("../images/legal/ipwh-legal-hero-background.webp");
  background-position: center;
  background-size: cover;
  color: var(--ipwh-legalhub-white);
}

.ipwh-legalhub-hero::after {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -85px;
  top: -180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  content: "";
}

.ipwh-legalhub-breadcrumb {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.ipwh-legalhub-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipwh-legalhub-breadcrumb li + li::before {
  margin-right: 8px;
  content: "/";
}

.ipwh-legalhub-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.ipwh-legalhub-hero-inner {
  max-width: 900px;
}

.ipwh-legalhub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #f1b3af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ipwh-legalhub-kicker::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.ipwh-legalhub-title {
  max-width: 880px;
  margin: 0;
  color: var(--ipwh-legalhub-white);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.ipwh-legalhub-hero-copy {
  max-width: 800px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.ipwh-legalhub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ipwh-legalhub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--ipwh-legalhub-white);
  border-radius: 8px;
  background: var(--ipwh-legalhub-white);
  color: var(--ipwh-legalhub-brand);
  font-size: 14px;
  font-weight: 800;
}

.ipwh-legalhub-button:hover {
  background: #f7f8fa;
}

.ipwh-legalhub-button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--ipwh-legalhub-white);
}

.ipwh-legalhub-button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ipwh-legalhub-intro {
  position: relative;
  z-index: 2;
  margin-top: -38px;
}

.ipwh-legalhub-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--ipwh-legalhub-line);
  border-radius: 16px;
  background: var(--ipwh-legalhub-white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.ipwh-legalhub-intro-text {
  margin: 0;
  color: var(--ipwh-legalhub-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ipwh-legalhub-intro-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ipwh-legalhub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ipwh-legalhub-line);
  border-radius: 999px;
  background: var(--ipwh-legalhub-soft);
  color: #465165;
  font-size: 12px;
  font-weight: 800;
}

.ipwh-legalhub-section {
  padding: 74px 0 84px;
  background: var(--ipwh-legalhub-soft);
}

.ipwh-legalhub-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.ipwh-legalhub-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--ipwh-legalhub-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ipwh-legalhub-heading h2 {
  margin: 0;
  color: var(--ipwh-legalhub-ink);
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ipwh-legalhub-heading p {
  margin: 14px 0 0;
  color: var(--ipwh-legalhub-muted);
  font-size: 16px;
  line-height: 1.7;
}

.ipwh-legalhub-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.ipwh-legalhub-search,
.ipwh-legalhub-filter {
  position: relative;
}

.ipwh-legalhub-search::before {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #7c8797;
  border-radius: 50%;
  transform: translateY(-58%);
  content: "";
  pointer-events: none;
}

.ipwh-legalhub-search::after {
  position: absolute;
  left: 29px;
  top: 31px;
  width: 7px;
  height: 2px;
  background: #7c8797;
  transform: rotate(45deg);
  content: "";
  pointer-events: none;
}

.ipwh-legalhub-search input,
.ipwh-legalhub-filter select {
  width: 100%;
  height: 54px;
  border: 1px solid #d7dde7;
  border-radius: 12px;
  background: var(--ipwh-legalhub-white);
  color: var(--ipwh-legalhub-ink);
  font: 15px Arial, sans-serif;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.ipwh-legalhub-search input {
  padding: 0 16px 0 46px;
}

.ipwh-legalhub-filter select {
  padding: 0 14px;
}

.ipwh-legalhub-search input:focus,
.ipwh-legalhub-filter select:focus {
  border-color: var(--ipwh-legalhub-brand);
  outline: 3px solid rgba(129, 34, 31, 0.12);
  outline-offset: 1px;
}

.ipwh-legalhub-result-count {
  max-width: 900px;
  min-height: 20px;
  margin: -14px auto 24px;
  color: var(--ipwh-legalhub-muted);
  font-size: 13px;
  text-align: center;
}

.ipwh-legalhub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ipwh-legalhub-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--ipwh-legalhub-line);
  border-radius: 16px;
  background: var(--ipwh-legalhub-white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ipwh-legalhub-card:hover {
  border-color: rgba(129, 34, 31, 0.3);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
  transform: translateY(-2px);
}

.ipwh-legalhub-card.ipwh-legalhub-hidden {
  display: none;
}

.ipwh-legalhub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ipwh-legalhub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ipwh-legalhub-brand) 0%, var(--ipwh-legalhub-brand-dark) 100%);
  color: var(--ipwh-legalhub-white);
  font-size: 17px;
  font-weight: 800;
}

.ipwh-legalhub-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--ipwh-legalhub-line);
  border-radius: 999px;
  background: var(--ipwh-legalhub-soft);
  color: #687487;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ipwh-legalhub-card h3 {
  margin: 0 0 10px;
  color: var(--ipwh-legalhub-ink);
  font-size: 22px;
  line-height: 1.3;
}

.ipwh-legalhub-card p {
  margin: 0 0 17px;
  color: var(--ipwh-legalhub-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.ipwh-legalhub-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.ipwh-legalhub-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 19px;
  color: #455165;
  font-size: 13.5px;
  line-height: 1.55;
}

.ipwh-legalhub-list li::before {
  position: absolute;
  left: 1px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ipwh-legalhub-brand);
  content: "";
}

.ipwh-legalhub-updated {
  margin: auto 0 18px;
  color: #748094;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ipwh-legalhub-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--ipwh-legalhub-brand);
  color: var(--ipwh-legalhub-white);
  font-size: 13px;
  font-weight: 800;
}

.ipwh-legalhub-card-link:hover {
  background: var(--ipwh-legalhub-brand-dark);
}

.ipwh-legalhub-empty {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border: 1px dashed #c7cfdb;
  border-radius: 14px;
  background: var(--ipwh-legalhub-white);
  color: var(--ipwh-legalhub-muted);
  text-align: center;
}

.ipwh-legalhub-empty.ipwh-legalhub-empty-visible {
  display: block;
}

.ipwh-legalhub-contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 46px;
}

.ipwh-legalhub-contact-card,
.ipwh-legalhub-help-card {
  padding: 29px;
  border-radius: 17px;
}

.ipwh-legalhub-contact-card {
  background: linear-gradient(120deg, #151f32 0%, #351b29 100%);
  color: var(--ipwh-legalhub-white);
}

.ipwh-legalhub-contact-card h3,
.ipwh-legalhub-help-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.25;
}

.ipwh-legalhub-contact-card h3 {
  color: var(--ipwh-legalhub-white);
}

.ipwh-legalhub-contact-card > p,
.ipwh-legalhub-help-card > p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
}

.ipwh-legalhub-contact-card > p {
  color: rgba(255, 255, 255, 0.72);
}

.ipwh-legalhub-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ipwh-legalhub-contact-item {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.ipwh-legalhub-contact-item strong,
.ipwh-legalhub-contact-item a {
  display: block;
}

.ipwh-legalhub-contact-item strong {
  margin-bottom: 5px;
  color: var(--ipwh-legalhub-white);
  font-size: 12px;
}

.ipwh-legalhub-contact-item a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.ipwh-legalhub-help-card {
  border: 1px solid var(--ipwh-legalhub-line);
  background: var(--ipwh-legalhub-white);
}

.ipwh-legalhub-help-card h3 {
  color: var(--ipwh-legalhub-ink);
}

.ipwh-legalhub-help-card > p,
.ipwh-legalhub-help-list li {
  color: var(--ipwh-legalhub-muted);
}

.ipwh-legalhub-help-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipwh-legalhub-help-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--ipwh-legalhub-line);
  font-size: 14px;
  line-height: 1.6;
}

.ipwh-legalhub-help-list li:last-child {
  border-bottom: 0;
}

.ipwh-legalhub-assurance {
  padding: 26px 0;
  background: #111a2a;
}

.ipwh-legalhub-assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ipwh-legalhub-assurance-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.ipwh-legalhub-assurance-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ipwh-legalhub-white);
  font-size: 13px;
}

@media (max-width: 980px) {
  .ipwh-legalhub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipwh-legalhub-intro-grid,
  .ipwh-legalhub-contact-wrap {
    grid-template-columns: 1fr;
  }

  .ipwh-legalhub-intro-points {
    justify-content: flex-start;
  }

  .ipwh-legalhub-assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ipwh-legalhub-container {
    width: min(100% - 28px, 1200px);
  }

  .ipwh-legalhub-hero {
    padding: 54px 0 76px;
  }

  .ipwh-legalhub-breadcrumb {
    margin-bottom: 26px;
  }

  .ipwh-legalhub-hero-copy {
    font-size: 16px;
  }

  .ipwh-legalhub-hero-actions,
  .ipwh-legalhub-toolbar,
  .ipwh-legalhub-grid,
  .ipwh-legalhub-contact-grid,
  .ipwh-legalhub-assurance-grid {
    grid-template-columns: 1fr;
  }

  .ipwh-legalhub-hero-actions {
    display: grid;
  }

  .ipwh-legalhub-intro-grid {
    padding: 22px;
  }

  .ipwh-legalhub-section {
    padding: 58px 0 66px;
  }

  .ipwh-legalhub-card {
    padding: 22px;
  }
}

@media print {
  .ipwh-legalhub-hero {
    padding: 28px 0;
    background: #fff;
  }

  .ipwh-legalhub-title,
  .ipwh-legalhub-hero-copy,
  .ipwh-legalhub-breadcrumb,
  .ipwh-legalhub-breadcrumb a {
    color: #000;
  }

  .ipwh-legalhub-hero-actions,
  .ipwh-legalhub-toolbar,
  .ipwh-legalhub-contact-wrap {
    display: none;
  }

  .ipwh-legalhub-intro {
    margin-top: 0;
  }

  .ipwh-legalhub-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
