.iehes-legal {
  width: min(1040px, 100%);
  margin: 0 auto;
  color: #183153;
}

.iehes-legal__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 22px;
  background: radial-gradient(circle at 85% 20%, rgba(46, 142, 255, .26), transparent 25%), linear-gradient(135deg, #061b42, #0a397d);
  color: #fff;
  box-shadow: 0 20px 55px rgba(5, 35, 79, .18);
}

.iehes-legal__hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: #fff;
}

.iehes-legal__hero > p:not(.iehes-legal__eyebrow) {
  max-width: 780px;
  color: #d5e6fb;
  font-size: 1.08rem;
}

.iehes-legal__hero small { color: #a9c4e6; }
.iehes-legal__eyebrow { margin: 0; color: #76b7ff; font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

.iehes-legal__nav {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 43, 83, .06);
}

.iehes-legal__nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 7px;
  color: #344d6d;
  font-size: .8rem;
  font-weight: 750;
}

.iehes-legal__nav a:hover { background: #eaf3ff; color: #075ee8; }
.iehes-legal__nav a[aria-current="page"] { background: #eaf3ff; color: #064fc7; }
.iehes-legal a:focus-visible, .iehes-legal__table-wrap:focus-visible { outline: 3px solid #1673f9; outline-offset: 4px; }

.iehes-legal__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  margin-top: 18px;
}

.iehes-legal__content > section,
.iehes-consent-form,
.iehes-legal__steps > section {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #dbe5f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(13, 43, 83, .055);
}

.iehes-legal__content h2 { margin: 0 0 11px; color: #071936; font-size: 1.22rem; }
.iehes-legal__content p { color: #405879; }
.iehes-legal__content li + li { margin-top: 7px; }
.iehes-legal__content code { overflow-wrap: anywhere; }
.iehes-legal__content a:not(.iehes-button), .iehes-legal__contact a { text-decoration: underline; text-underline-offset: 3px; }
.iehes-legal__content ul, .iehes-legal__content ol { padding-left: 1.4em; }
.iehes-legal__content li { color: #405879; }
.iehes-legal__content li + li { margin-top: 9px; }
.iehes-legal__content > section > :last-child { margin-bottom: 0; }
.iehes-legal__table-wrap { width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid #dbe5f1; border-radius: 10px; }
.iehes-legal__table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: .88rem; }
.iehes-legal__table caption { padding: 14px 16px; color: #344d6d; text-align: left; font-weight: 750; }
.iehes-legal__table th, .iehes-legal__table td { padding: 14px 16px; border-top: 1px solid #dbe5f1; vertical-align: top; }
.iehes-legal__table thead th { background: #edf4fc; color: #183153; }
.iehes-legal__table tbody th { width: 30%; font-weight: 600; }
.iehes-legal__contact { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid #c7d9ef; border-radius: 15px; background: #edf4fc; }
.iehes-legal__contact > .dashicons { flex: 0 0 auto; margin-top: 3px; color: #075ee8; }
.iehes-legal__contact p { margin: 8px 0 0; color: #405879; }
.iehes-legal__contact a { overflow-wrap: anywhere; }

.iehes-legal__feature-grid,
.iehes-consent-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.iehes-legal__feature-grid > section,
.iehes-consent-summary > section {
  padding: 25px;
  border: 1px solid #dbe5f1;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f5f9ff);
}

.iehes-legal__feature-grid .dashicons,
.iehes-consent-summary .dashicons {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 13px;
  background: #e8f2ff;
  color: #075ee8;
  font-size: 24px;
}

.iehes-legal__callout { border-color: #a9d7c7 !important; background: #f2fcf8 !important; }
.iehes-legal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.iehes-legal__steps { display: grid; gap: 15px; }

.iehes-legal__steps > section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.iehes-legal__steps > section > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #075ee8;
  color: #fff;
  font-weight: 850;
}

.iehes-legal__steps form { margin-top: 16px; }
.iehes-consent-summary > section { display: flex; gap: 15px; }
.iehes-consent-summary .dashicons { flex: 0 0 auto; margin: 0; }

.iehes-consent-form > label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 650;
}

.iehes-consent-form input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.iehes-consent-form > p { margin: 18px 0; font-size: .88rem; }
.iehes-legal__fineprint { padding: 8px 3px; color: #72829a !important; font-size: .78rem; text-align: center; }

.iehes-compliance-fallback-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 18px;
  border-top: 1px solid #dbe5f1;
  background: #f6f9fd;
  font-size: .8rem;
}

@media (max-width: 800px) {
  .iehes-legal__feature-grid,
  .iehes-consent-summary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.iehes-legal__nav { flex-wrap: wrap; overflow-x: visible; }
	.iehes-legal__nav a { flex: 1 1 100%; }
  .iehes-legal__hero { border-radius: 15px; }
  .iehes-legal__steps > section { grid-template-columns: 1fr; }
  .iehes-consent-summary > section { display: block; }
  .iehes-consent-summary .dashicons { margin-bottom: 13px; }
  .iehes-legal__actions .iehes-button,
  .iehes-legal__steps .iehes-button,
  .iehes-consent-form .iehes-button { width: 100%; }
}
