:root {
  --nlp-navy: #072a4b;
  --nlp-blue: #095aa9;
  --nlp-ink: #12263a;
  --nlp-muted: #5b6c7d;
  --nlp-line: #d9e2ea;
  --nlp-sky: #f3f8fc;
  --nlp-white: #fff;
  --nlp-shadow: 0 18px 60px rgba(7, 42, 75, .18);
}

.nl-consent[hidden],
.nl-consent-modal[hidden],
.nl-consent-reopen[hidden] { display: none !important; }

.nl-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 999999;
  padding: 16px;
  pointer-events: none;
}

.nl-consent__panel {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--nlp-white);
  border: 1px solid var(--nlp-line);
  border-radius: 16px;
  box-shadow: var(--nlp-shadow);
  pointer-events: auto;
}

.nl-consent__eyebrow,
.nl-legal__eyebrow {
  margin: 0 0 6px;
  color: var(--nlp-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nl-consent h2,
.nl-consent-modal h2 {
  margin: 0 0 8px;
  color: var(--nlp-navy);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.nl-consent p,
.nl-consent-modal p { margin: 0; color: var(--nlp-muted); line-height: 1.55; }
.nl-consent__links { margin-top: 8px !important; font-size: .86rem; }
.nl-consent__links a { color: var(--nlp-blue); }

.nl-consent__actions,
.nl-consent-modal__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 10px;
}

.nl-consent__button,
.nl-privacy-inline-button {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--nlp-navy);
  border-radius: 8px;
  background: var(--nlp-white);
  color: var(--nlp-navy);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.nl-consent__button:hover,
.nl-privacy-inline-button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(7, 42, 75, .13); }
.nl-consent__button:focus-visible,
.nl-privacy-inline-button:focus-visible,
.nl-consent-modal__close:focus-visible,
.nl-consent-reopen:focus-visible { outline: 3px solid rgba(9, 90, 169, .28); outline-offset: 2px; }
.nl-consent__button--equal { background: var(--nlp-navy); border-color: var(--nlp-navy); color: #fff; }
.nl-consent__button--equal.nl-consent__button--primary { background: var(--nlp-blue); border-color: var(--nlp-blue); color: #fff; }
.nl-consent__button--primary:not(.nl-consent__button--equal) { background: var(--nlp-navy); color: #fff; }
.nl-consent__button--config { border-color: var(--nlp-line); color: var(--nlp-blue); }
.nl-consent__button--save { background: var(--nlp-sky); color: var(--nlp-navy); }

.nl-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.nl-consent-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 23, 40, .58); backdrop-filter: blur(3px); }
.nl-consent-modal__box {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--nlp-shadow);
}
.nl-consent-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--nlp-navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.nl-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--nlp-line);
}
.nl-consent-option strong { display: block; margin-bottom: 4px; color: var(--nlp-navy); }
.nl-consent-option span { display: block; color: var(--nlp-muted); font-size: .9rem; line-height: 1.45; }
.nl-consent-modal__actions { margin-top: 24px; }

.nl-switch { display: grid; grid-template-columns: 46px; gap: 4px; justify-items: center; cursor: pointer; }
.nl-switch input { position: absolute; opacity: 0; pointer-events: none; }
.nl-switch > span {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: #b8c4cf;
  transition: background-color .16s ease;
}
.nl-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transition: transform .16s ease;
}
.nl-switch input:checked + span { background: var(--nlp-blue); }
.nl-switch input:checked + span::after { transform: translateX(20px); }
.nl-switch input:focus-visible + span { outline: 3px solid rgba(9, 90, 169, .25); outline-offset: 2px; }
.nl-switch input:disabled + span { opacity: .75; }
.nl-switch em { color: var(--nlp-muted); font-size: .68rem; font-style: normal; white-space: nowrap; }

.nl-consent-reopen {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--nlp-line);
  border-radius: 99px;
  background: #fff;
  color: var(--nlp-navy);
  box-shadow: 0 8px 26px rgba(7,42,75,.14);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.nl-consent-reopen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.nl-external-placeholder {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--nlp-sky);
  border: 1px solid var(--nlp-line);
}
.nl-external-placeholder iframe { width: 100%; min-height: inherit; border: 0; }
.nl-external-placeholder__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(243,248,252,.98), rgba(255,255,255,.98));
}
.nl-external-placeholder__overlay strong { color: var(--nlp-navy); font-size: 1.1rem; }
.nl-external-placeholder__overlay p { max-width: 500px; margin: 8px 0 16px; color: var(--nlp-muted); }
.nl-external-placeholder__icon { margin-bottom: 10px; color: var(--nlp-blue); font-size: 2.2rem; }
.nl-external-placeholder.is-loaded .nl-external-placeholder__overlay { display: none; }

.nl-privacy-inline-button { display: inline-flex; min-height: 36px; margin: 4px; padding: 7px 12px; font-size: .8rem; vertical-align: middle; }

.nl-legal-page .nl-entry-header { display: none; }
.nl-legal-page .nl-content-shell { width: 100%; max-width: none; padding: 0; }
.nl-legal-page .nl-entry-content { margin: 0; }

.nl-legal {
  --nlp-content: 920px;
  color: var(--nlp-ink);
  background: #fff;
}
.nl-legal__hero,
.nl-legal__body { width: min(var(--nlp-content), calc(100% - 36px)); margin-inline: auto; }
.nl-legal__hero { padding: clamp(54px, 8vw, 96px) 0 34px; border-bottom: 1px solid var(--nlp-line); }
.nl-legal__hero h1 { margin: 0 0 14px; color: var(--nlp-navy); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -.035em; }
.nl-legal__intro { max-width: 720px; margin: 0; color: var(--nlp-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.nl-legal__updated { margin: 18px 0 0; color: var(--nlp-muted); font-size: .82rem; }
.nl-legal__body { padding: 34px 0 80px; }
.nl-legal__body h2 { margin: 42px 0 12px; color: var(--nlp-navy); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; }
.nl-legal__body h2:first-child { margin-top: 0; }
.nl-legal__body p, .nl-legal__body li { color: #34495d; line-height: 1.75; }
.nl-legal__body a { color: var(--nlp-blue); text-underline-offset: 3px; }
.nl-legal__body ul { padding-left: 1.25rem; }
.nl-legal__summary, .nl-legal__callout { margin: 0 0 34px; padding: 24px; background: var(--nlp-sky); border: 1px solid var(--nlp-line); border-radius: 12px; }
.nl-legal__summary h2 { margin: 0 0 14px; }
.nl-legal__summary dl { margin: 0; }
.nl-legal__summary dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 10px 0; border-top: 1px solid var(--nlp-line); }
.nl-legal__summary dt { color: var(--nlp-muted); font-weight: 700; }
.nl-legal__summary dd { margin: 0; color: var(--nlp-navy); font-weight: 600; }
.nl-legal__callout { color: #34495d; line-height: 1.65; }
.nl-legal__table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--nlp-line); border-radius: 10px; }
.nl-legal__table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
.nl-legal__table th, .nl-legal__table td { padding: 14px 16px; border-bottom: 1px solid var(--nlp-line); text-align: left; vertical-align: top; line-height: 1.55; }
.nl-legal__table th { background: var(--nlp-sky); color: var(--nlp-navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.nl-legal__table tr:last-child td { border-bottom: 0; }
.nl-legal code { padding: 2px 5px; border-radius: 4px; background: #edf3f8; color: var(--nlp-navy); font-size: .88em; }

@media (max-width: 820px) {
  .nl-consent__panel { grid-template-columns: 1fr; gap: 16px; }
  .nl-consent__actions { grid-template-columns: 1fr 1fr 1fr; }
  .nl-consent-modal__actions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nl-consent { padding: 8px; }
  .nl-consent__panel { padding: 18px; border-radius: 12px; }
  .nl-consent__actions { grid-template-columns: 1fr 1fr; }
  .nl-consent__button--config { grid-column: 1 / -1; grid-row: 2; }
  .nl-consent-modal { padding: 8px; }
  .nl-consent-modal__box { padding: 24px 18px; border-radius: 12px; }
  .nl-consent-option { grid-template-columns: 1fr auto; gap: 10px; }
  .nl-consent-reopen span { display: none; }
  .nl-consent-reopen { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .nl-legal__summary dl > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-consent__button, .nl-privacy-inline-button, .nl-switch > span, .nl-switch > span::after { transition: none; }
}
