body.niumud-legal-page,
body.niumud-privacy-page,
body.niumud-cookies-page {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: #171717;
  background: var(--niumud-paper);
}

.nml-page {
  --nml-ink: #171717;
  --nml-muted: #66625e;
  --nml-line: rgba(23, 23, 23, .18);
  --nml-pink-dark: #9e5573;
  min-height: 100vh;
  padding-top: var(--niumud-header-height);
  color: var(--nml-ink);
  background: var(--niumud-paper);
}

.nml-hero {
  position: relative;
  min-height: min(650px, 78vh);
  display: flex;
  align-items: flex-end;
  padding: clamp(110px, 14vw, 220px) clamp(20px, 6vw, 100px) clamp(58px, 7vw, 105px);
  overflow: hidden;
  border-bottom: 1px solid var(--nml-line);
}

.nml-hero::after {
  content: "NIUMUD";
  position: absolute;
  right: -.05em;
  bottom: -.22em;
  color: var(--niumud-pink);
  font: 400 clamp(150px, 27vw, 510px)/.72 "Archivo Black", Arial, sans-serif;
  letter-spacing: -.1em;
  opacity: .22;
  pointer-events: none;
  white-space: nowrap;
}

.nml-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  margin: 0 auto;
}

.nml-kicker,
.nml-section__number,
.nml-card__label {
  color: var(--nml-pink-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nml-hero h1 {
  max-width: 1180px;
  margin: 25px 0 34px;
  font: 400 clamp(58px, 10.8vw, 178px)/.76 "Archivo Black", Arial, sans-serif;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.nml-hero__intro {
  max-width: 680px;
  margin: 0;
  color: #4f4c49;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 650;
  line-height: 1.45;
}

.nml-layout {
  width: min(100%, 1440px);
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 850px);
  gap: clamp(55px, 9vw, 150px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 125px) clamp(20px, 6vw, 100px) clamp(100px, 11vw, 170px);
}

.nml-toc {
  position: sticky;
  top: calc(var(--niumud-header-height) + 32px);
  padding-top: 4px;
}

.nml-toc > span {
  display: block;
  margin-bottom: 21px;
  color: var(--nml-pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nml-toc a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--nml-line);
  color: var(--nml-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.nml-toc a:hover,
.nml-toc a:focus-visible { color: var(--nml-pink-dark); }

.nml-content { min-width: 0; }

.nml-section {
  scroll-margin-top: calc(var(--niumud-header-height) + 30px);
  margin-bottom: clamp(65px, 7vw, 105px);
}

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

.nml-section h2 {
  max-width: 760px;
  margin: 14px 0 28px;
  font: 400 clamp(29px, 4vw, 54px)/.98 "Archivo Black", Arial, sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.nml-section h3 {
  margin: 36px 0 13px;
  font-size: 17px;
  line-height: 1.3;
}

.nml-section p,
.nml-section li {
  color: #3f3c39;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.72;
}

.nml-section p { margin: 0 0 19px; }
.nml-section ul { margin: 19px 0 25px; padding-left: 1.25em; }
.nml-section li + li { margin-top: 9px; }
.nml-section strong { color: var(--nml-ink); }
.nml-section a { color: #7d3f59; font-weight: 750; text-underline-offset: 3px; }

.nml-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid var(--nml-ink);
}

.nml-card {
  min-height: 125px;
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--nml-line);
}

.nml-card:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--nml-line);
}

.nml-card__value {
  display: block;
  margin-top: 14px;
  color: var(--nml-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.nml-note {
  margin: 28px 0;
  padding: 24px 26px;
  border-left: 6px solid var(--niumud-pink);
  background: #fff;
}

.nml-note p:last-child { margin-bottom: 0; }

.nml-table-wrap {
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border-top: 1px solid var(--nml-ink);
}

.nml-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.nml-table th,
.nml-table td {
  padding: 17px 16px 18px 0;
  border-bottom: 1px solid var(--nml-line);
  vertical-align: top;
}

.nml-table th {
  color: var(--nml-pink-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nml-table td {
  color: #3f3c39;
  font-size: 14px;
  line-height: 1.55;
}

.nml-updated {
  display: inline-block;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--nml-line);
  color: #77716c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .nml-hero { min-height: 540px; }
  .nml-layout { grid-template-columns: 1fr; gap: 55px; }
  .nml-toc { position: static; columns: 2; column-gap: 34px; }
  .nml-toc > span { column-span: all; }
  .nml-toc a { break-inside: avoid; }
}

@media (max-width: 540px) {
  .nml-hero { min-height: 475px; padding-inline: 16px; }
  .nml-hero h1 { font-size: clamp(54px, 20vw, 88px); }
  .nml-hero__intro { font-size: 16px; }
  .nml-layout { padding: 58px 16px 95px; }
  .nml-toc { columns: 1; }
  .nml-data-grid { grid-template-columns: 1fr; }
  .nml-card,
  .nml-card:nth-child(even) { min-height: 0; padding: 20px 0; border-left: 0; }
  .nml-section h2 { font-size: clamp(30px, 10vw, 43px); }
  .nml-section p,
  .nml-section li { font-size: 15px; }
  .nml-note { padding: 21px 19px; }
}
