/* North Focus — Legal page.
   Calm, readable, intentionally understated. Single reading column with a
   sticky in-page index. Warm paper, coral eyebrows, navy headings, hairline
   dividers. Built entirely on the existing site + DS tokens. */

/* Effective date — quiet meta line under the hero description */
.nf-legal__effective {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--text-sm); color: var(--nf-ink-400); margin: 0;
}

/* ── Layout: sticky TOC + reading column ── */
.nf-legal { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 11vw, 120px); }
.nf-legal__layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

/* In-page index */
.nf-legal__toc {
  position: sticky; top: 104px;
  display: flex; flex-direction: column; gap: 14px;
}
.nf-legal__toc-label {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--text-xs); color: var(--nf-ink-400);
  padding-bottom: 12px; border-bottom: 1px solid var(--nf-hairline);
}
.nf-legal__toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nf-legal__toc-link {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--text-xs); line-height: 1.35; color: var(--nf-ink-600);
  transition: color var(--dur-fast, 160ms) var(--ease-out, ease);
}
.nf-legal__toc-link::before {
  content: attr(data-ix);
  flex: none; color: var(--nf-coral); font-weight: var(--fw-semibold);
}
.nf-legal__toc-link:hover { color: var(--nf-navy); text-decoration: none; }
.nf-legal__toc-link.is-active { color: var(--nf-navy); }
.nf-legal__toc-cookie {
  margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--nf-hairline);
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border-left: 0; border-right: 0; border-bottom: 0;
  cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--text-xs); color: var(--nf-coral);
  transition: color var(--dur-fast, 160ms) var(--ease-out, ease);
}
.nf-legal__toc-cookie:hover { color: var(--nf-navy); }
.nf-legal__toc-cookie:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }
.nf-legal__toc-cookie svg { width: 15px; height: 15px; flex: none; }

/* ── Reading column ── */
.nf-legal__content { max-width: 72ch; }

.nf-legal-sec {
  scroll-margin-top: 96px;
  padding-top: clamp(40px, 6vw, 64px);
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--nf-hairline);
}
.nf-legal-sec:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.nf-legal-sec__head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.nf-legal-sec__title {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  text-transform: uppercase; letter-spacing: var(--tracking-title);
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.06; color: var(--nf-navy);
  margin: 0;
}
.nf-legal-sec__intro {
  font-size: var(--text-md); line-height: 1.7; color: var(--nf-ink-600);
  margin: 0; max-width: 60ch; text-wrap: pretty;
}

/* ── Prose ── */
.nf-legal-prose h3 {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.2; color: var(--nf-navy);
  margin: clamp(34px, 4vw, 48px) 0 14px;
}
.nf-legal-prose h4 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-base); line-height: 1.3; color: var(--nf-navy);
  margin: clamp(22px, 2.6vw, 28px) 0 10px;
}
.nf-legal-prose p {
  font-size: var(--text-base); line-height: 1.72; color: var(--nf-ink);
  margin: 0 0 16px; text-wrap: pretty;
}
.nf-legal-prose p:last-child { margin-bottom: 0; }
.nf-legal-prose a {
  color: var(--nf-navy); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px; text-decoration-color: var(--nf-coral);
}
.nf-legal-prose a:hover { color: var(--nf-coral-700); }
.nf-legal-prose ul {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.nf-legal-prose li {
  position: relative; padding-left: 22px;
  font-size: var(--text-base); line-height: 1.62; color: var(--nf-ink); text-wrap: pretty;
}
.nf-legal-prose li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--nf-coral);
}
.nf-legal-prose strong { color: var(--nf-navy); font-weight: 600; }

/* Inline "Cookie settings" reopen control inside the cookie policy */
.nf-legal__reopen {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 6px; padding: 10px 16px;
  background: var(--nf-coral-200); border: 1px solid transparent;
  border-radius: var(--radius-md); cursor: pointer;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--text-xs); color: var(--nf-navy);
  transition: background var(--dur-fast, 160ms) var(--ease-out, ease);
}
.nf-legal__reopen:hover { background: var(--nf-coral-300); }
.nf-legal__reopen:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.nf-legal__reopen svg { width: 15px; height: 15px; flex: none; }

/* ── Company information card ── */
.nf-legal-card {
  background: var(--nf-white); border: 1px solid var(--nf-line);
  border-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-curve);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.nf-legal-card__intro {
  font-size: var(--text-base); line-height: 1.7; color: var(--nf-ink-600);
  margin: 0 0 clamp(22px, 2.6vw, 28px); max-width: 52ch;
}
.nf-legal-card__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--nf-line);
  border: 1px solid var(--nf-line); border-radius: var(--radius-md); overflow: hidden;
}
.nf-legal-card__row {
  background: var(--nf-white);
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--nf-space-flow-md) var(--nf-space-flow-md);
}
.nf-legal-card__row--wide { grid-column: 1 / -1; }
.nf-legal-card__k {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--text-xs); color: var(--nf-coral-700);
}
.nf-legal-card__v {
  font-size: var(--text-base); line-height: 1.45; color: var(--nf-navy); font-weight: 500;
}
.nf-legal-card__v a {
  color: var(--nf-navy); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px; text-decoration-color: var(--nf-coral);
}
.nf-legal-card__v a:hover { color: var(--nf-coral-700); }

/* ── Fine print foot ── */
.nf-legal__fineprint {
  margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--nf-hairline);
  max-width: 72ch;
}
.nf-legal__fineprint p {
  font-size: var(--text-sm); line-height: 1.65; color: var(--nf-ink-400);
  margin: 0 0 10px;
}
.nf-legal__fineprint p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .nf-legal__layout { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .nf-legal__toc {
    position: static; top: auto;
    border: 1px solid var(--nf-hairline); border-radius: var(--radius-md);
    padding: 18px 20px; background: rgba(255,255,255,0.5);
  }
  .nf-legal__content { max-width: none; }
}
@media (max-width: 520px) {
  .nf-legal-card__grid { grid-template-columns: 1fr; }
  .nf-legal-card__row--wide { grid-column: auto; }
}
