:root {
  --hce-legal-navy: #052f46;
  --hce-legal-blue: #0057b8;
  --hce-legal-cyan: #00a6d2;
  --hce-legal-white: #ffffff;
  --hce-legal-ink: #102534;
  --hce-legal-border: #c8d6df;
}

.hce-global-legal {
  clear: both;
  width: 100%;
  background: var(--hce-legal-navy);
  color: var(--hce-legal-white);
  border-top: 4px solid var(--hce-legal-cyan);
  position: relative;
  z-index: 5;
}

.hce-global-legal__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 12px 0;
}

.hce-global-legal a,
.hce-global-legal button {
  color: var(--hce-legal-white) !important;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.hce-global-legal a:hover,
.hce-global-legal button:hover {
  color: #7fe7ff !important;
  text-decoration: underline;
}

.hce-global-legal button,
.hce-cookie-inline-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hce-cookie-inline-link {
  color: #0057b8;
  font: inherit;
  text-decoration: underline;
}

.hce-global-legal a:focus-visible,
.hce-global-legal button:focus-visible,
.hce-cookie-inline-link:focus-visible,
.hce-cookie-dialog a:focus-visible,
.hce-cookie-button:focus-visible {
  outline: 3px solid #ffd400;
  outline-offset: 3px;
}

.hce-cookie-layer[hidden] {
  display: none !important;
}

.hce-cookie-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(0, 23, 38, 0.68);
}

.hce-cookie-dialog {
  box-sizing: border-box;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px 28px 24px;
  background: var(--hce-legal-white);
  color: var(--hce-legal-ink);
  border: 4px solid var(--hce-legal-blue);
  border-radius: 4px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.hce-cookie-dialog__eyebrow {
  margin: 0 0 6px;
  color: var(--hce-legal-blue);
  font: 800 12px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hce-cookie-dialog h2 {
  margin: 0 0 10px;
  color: var(--hce-legal-navy);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.hce-cookie-dialog p {
  margin: 0 0 14px;
  color: var(--hce-legal-ink);
  font-size: 16px;
  line-height: 1.6;
}

.hce-cookie-dialog__policy a {
  color: var(--hce-legal-blue);
  font-weight: 700;
}

.hce-cookie-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hce-cookie-button {
  min-height: 46px;
  padding: 11px 20px;
  border: 3px solid var(--hce-legal-blue);
  border-radius: 2px;
  font: 800 15px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.hce-cookie-button--primary {
  background: var(--hce-legal-blue);
  color: var(--hce-legal-white);
}

.hce-cookie-button--secondary {
  background: var(--hce-legal-white);
  color: var(--hce-legal-navy);
}

.hce-cookie-button:hover {
  filter: brightness(0.92);
}

.hce-legal-document {
  color: #203441;
}

.hce-legal-document h2 {
  margin-top: 1.8em;
  color: var(--hce-legal-navy);
}

.hce-legal-document h3 {
  margin-top: 1.25em;
  color: #174f6c;
}

.hce-legal-effective {
  padding: 12px 16px;
  border-left: 5px solid var(--hce-legal-blue);
  background: #edf6fa;
}

.hce-legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.hce-legal-document table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.hce-legal-document th,
.hce-legal-document td {
  padding: 12px 14px;
  border: 1px solid var(--hce-legal-border);
  text-align: left;
  vertical-align: top;
}

.hce-legal-document th {
  background: var(--hce-legal-navy);
  color: var(--hce-legal-white);
}

body.hce-cookie-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .hce-global-legal__inner {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .hce-cookie-layer {
    padding: 12px;
  }

  .hce-cookie-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px 18px 18px;
  }

  .hce-cookie-dialog__actions {
    flex-direction: column-reverse;
  }

  .hce-cookie-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hce-cookie-dialog {
    animation: hce-cookie-enter 180ms ease-out;
  }
}

@keyframes hce-cookie-enter {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

