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

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

.ipwh-legal-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ipwh-legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 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-legal-white);
}

.ipwh-legal-hero::after {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -90px;
  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-legal-breadcrumb {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

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

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

.ipwh-legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.ipwh-legal-breadcrumb a:hover {
  color: var(--ipwh-legal-white);
}

.ipwh-legal-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-legal-kicker::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.ipwh-legal-title {
  max-width: 900px;
  margin: 0;
  color: var(--ipwh-legal-white);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.ipwh-legal-intro {
  max-width: 790px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.ipwh-legal-summary {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.ipwh-legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--ipwh-legal-line);
  border-radius: 16px;
  background: var(--ipwh-legal-white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.ipwh-legal-summary-item {
  min-height: 104px;
  padding: 24px 26px;
  border-right: 1px solid var(--ipwh-legal-line);
}

.ipwh-legal-summary-item:last-child {
  border-right: 0;
}

.ipwh-legal-summary-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ipwh-legal-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ipwh-legal-summary-value {
  display: block;
  color: var(--ipwh-legal-ink);
  font-size: 16px;
  line-height: 1.45;
}

.ipwh-legal-content {
  padding: 68px 0 88px;
}

.ipwh-legal-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.ipwh-legal-nav-shell {
  position: sticky;
  top: 106px;
}

.ipwh-legal-nav {
  overflow: hidden;
  border: 1px solid var(--ipwh-legal-line);
  border-radius: 16px;
  background: var(--ipwh-legal-white);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.055);
}

.ipwh-legal-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--ipwh-legal-line);
}

.ipwh-legal-nav-heading strong {
  color: var(--ipwh-legal-ink);
  font-size: 15px;
}

.ipwh-legal-nav-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(129, 34, 31, 0.16);
  border-radius: 9px;
  background: var(--ipwh-legal-brand-soft);
  color: var(--ipwh-legal-brand);
  font: 800 19px/1 Arial, sans-serif;
  text-decoration: none;
}

.ipwh-legal-nav-top:hover,
.ipwh-legal-nav-top:focus-visible {
  background: var(--ipwh-legal-brand);
  color: var(--ipwh-legal-white);
}

.ipwh-legal-nav-list {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
  scrollbar-width: thin;
}

.ipwh-legal-nav-list li {
  margin: 0;
}

.ipwh-legal-nav-link {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 7px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ipwh-legal-muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.ipwh-legal-nav-number {
  color: #9aa3b1;
  font-weight: 800;
}

.ipwh-legal-nav-link:hover,
.ipwh-legal-nav-link.ipwh-legal-nav-link-active {
  background: var(--ipwh-legal-brand-soft);
  color: var(--ipwh-legal-brand);
}

.ipwh-legal-nav-link.ipwh-legal-nav-link-active .ipwh-legal-nav-number {
  color: var(--ipwh-legal-brand);
}

.ipwh-legal-mobile-nav {
  display: none;
}

.ipwh-legal-policy {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--ipwh-legal-line);
  border-radius: 20px;
  background: var(--ipwh-legal-white);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
}

.ipwh-legal-policy-lead {
  margin-bottom: 38px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ipwh-legal-line);
}

.ipwh-legal-policy-lead strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ipwh-legal-brand);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ipwh-legal-policy-lead p {
  margin: 0;
  color: var(--ipwh-legal-muted);
  font-size: 16px;
}

.ipwh-legal-section {
  margin: 0 0 46px;
  scroll-margin-top: 116px;
}

.ipwh-legal-section:last-child {
  margin-bottom: 0;
}

.ipwh-legal-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
}

.ipwh-legal-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ipwh-legal-brand-soft);
  color: var(--ipwh-legal-brand);
  font-size: 14px;
  font-weight: 800;
}

.ipwh-legal-section h2 {
  margin: 0;
  color: var(--ipwh-legal-ink);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ipwh-legal-section h3 {
  margin: 26px 0 10px;
  color: var(--ipwh-legal-ink);
  font-size: 19px;
  line-height: 1.4;
}

.ipwh-legal-section p,
.ipwh-legal-section li {
  color: #3f4a5d;
  font-size: 15.5px;
}

.ipwh-legal-section p {
  margin: 0 0 14px;
}

.ipwh-legal-section ul {
  margin: 15px 0 18px;
  padding: 0;
  list-style: none;
}

.ipwh-legal-section li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 25px;
}

.ipwh-legal-section li::before {
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ipwh-legal-brand);
  content: "";
}

.ipwh-legal-subsection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.ipwh-legal-subsection {
  padding: 20px;
  border: 1px solid var(--ipwh-legal-line);
  border-radius: 13px;
  background: #fbfcfd;
}

.ipwh-legal-subsection h3 {
  margin-top: 0;
  font-size: 17px;
}

.ipwh-legal-subsection ul {
  margin-bottom: 0;
}

.ipwh-legal-subsection li {
  font-size: 14px;
  line-height: 1.6;
}

.ipwh-legal-notice {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--ipwh-legal-brand);
  border-radius: 0 12px 12px 0;
  background: var(--ipwh-legal-brand-soft);
  color: #4b3b3b;
  font-size: 14.5px;
}

.ipwh-legal-notice strong {
  color: var(--ipwh-legal-brand);
}

.ipwh-legal-table-wrap {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--ipwh-legal-line);
  border-radius: 13px;
  -webkit-overflow-scrolling: touch;
}

.ipwh-legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.ipwh-legal-table th,
.ipwh-legal-table td {
  padding: 15px 16px;
  border-right: 1px solid var(--ipwh-legal-line);
  border-bottom: 1px solid var(--ipwh-legal-line);
  color: #3f4a5d;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.ipwh-legal-table th {
  background: #f3f5f8;
  color: var(--ipwh-legal-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ipwh-legal-table tr:last-child td {
  border-bottom: 0;
}

.ipwh-legal-table th:last-child,
.ipwh-legal-table td:last-child {
  border-right: 0;
}

.ipwh-legal-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, #151f32 0%, #2f1b29 100%);
  color: var(--ipwh-legal-white);
}

.ipwh-legal-contact h3,
.ipwh-legal-contact p {
  color: var(--ipwh-legal-white);
}

.ipwh-legal-contact h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ipwh-legal-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.ipwh-legal-contact-links {
  display: grid;
  gap: 8px;
  align-content: center;
}

.ipwh-legal-contact-links a {
  color: var(--ipwh-legal-white);
  font-size: 14px;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.ipwh-legal-contact-links a:hover {
  text-decoration-color: var(--ipwh-legal-white);
}

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

  .ipwh-legal-nav-shell {
    display: none;
  }

  .ipwh-legal-mobile-nav {
    display: block;
    margin-bottom: 20px;
    border: 1px solid var(--ipwh-legal-line);
    border-radius: 14px;
    background: var(--ipwh-legal-white);
  }

  .ipwh-legal-mobile-nav summary {
    padding: 17px 19px;
    color: var(--ipwh-legal-ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }

  .ipwh-legal-mobile-nav .ipwh-legal-nav-list {
    max-height: none;
    padding: 0 10px 12px;
    border-top: 1px solid var(--ipwh-legal-line);
  }
}

@media (max-width: 720px) {
  .ipwh-legal-wrap {
    width: min(100% - 28px, 1180px);
  }

  .ipwh-legal-hero {
    padding: 54px 0 78px;
  }

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

  .ipwh-legal-intro {
    font-size: 16px;
  }

  .ipwh-legal-summary-grid {
    grid-template-columns: 1fr;
  }

  .ipwh-legal-summary-item {
    min-height: 0;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--ipwh-legal-line);
  }

  .ipwh-legal-summary-item:last-child {
    border-bottom: 0;
  }

  .ipwh-legal-content {
    padding: 46px 0 66px;
  }

  .ipwh-legal-policy {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .ipwh-legal-section-heading {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .ipwh-legal-section-index {
    width: 36px;
    height: 36px;
  }

  .ipwh-legal-subsection-grid,
  .ipwh-legal-contact {
    grid-template-columns: 1fr;
  }

  .ipwh-legal-subsection {
    padding: 17px;
  }

  .ipwh-legal-contact {
    padding: 22px;
  }
}

@media print {
  .ipwh-legal-hero {
    padding: 30px 0;
    background: #fff;
    color: #000;
  }

  .ipwh-legal-title,
  .ipwh-legal-intro,
  .ipwh-legal-breadcrumb,
  .ipwh-legal-breadcrumb a {
    color: #000;
  }

  .ipwh-legal-summary {
    margin-top: 0;
  }

  .ipwh-legal-nav-shell,
  .ipwh-legal-mobile-nav {
    display: none;
  }

  .ipwh-legal-layout {
    display: block;
  }

  .ipwh-legal-policy {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .ipwh-legal-section {
    break-inside: avoid;
  }
}
