/*!
 * NEXTLOGIC legal links and auth forms (DESIGN.md §2, §5): the footer row with the
 * legal links, the "Cookie settings" link button, and the /register and /user/login cards.
 * Always loaded (the banner itself is css/consent.css). Rules sit in `nl.components`.
 */
@layer nlfix, ckan, nl.tokens, nl.base, nl.ckan, nl.components, nl.utilities;

@layer nl.components {
  /* ---- Footer: © · Terms · Privacy · Cookies · Cookie settings · Built on CKAN ---- */
  .nl-footer__base { align-items: center; column-gap: 1.5rem; }
  .nl-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
  .nl-footer__legal a, .nl-footer__legal .nl-linkbtn { display: inline-flex; align-items: center; min-height: 32px; }
  @media (max-width: 991.98px) {
    .nl-footer__legal a, .nl-footer__legal .nl-linkbtn { min-height: 44px; }
  }

  /* A button that looks like a footer link: no underline until hover or focus. */
  .nl-linkbtn {
    appearance: none; background: none; border: 0; margin: 0; padding: 0;
    font: inherit; line-height: inherit; text-align: start; cursor: pointer;
    color: var(--link); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px;
  }
  .nl-linkbtn:hover, .nl-linkbtn:focus-visible { color: var(--foreground); text-decoration: underline; }
  .site-footer .nl-linkbtn { color: var(--nl-sky-200); }
  .site-footer .nl-linkbtn:hover, .site-footer .nl-linkbtn:focus-visible { color: #fff; }
  .nl-linkbtn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }

  /* ---- Auth cards (/register, /user/login) ---------------------------------- */
  .nl-auth .form-check-label { font-weight: 400; color: var(--foreground); }
  .nl-auth .form-check-label::after { content: none; } /* CKAN appends a colon to every label */
  .nl-auth .form-check-label a { font-weight: 600; }
  @media (max-width: 991.98px) {
    .nl-auth .form-check-input { width: 1.5rem; height: 1.5rem; margin-top: 0; }
    .nl-auth .form-check { min-height: 44px; align-items: center; }
  }
  .nl-auth .nl-auth__legal { margin: 1rem 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
  .nl-auth .nl-auth__help { margin: .375rem 0 0; font-size: var(--text-sm); }
  .nl-auth .nl-auth__help a { display: inline-flex; align-items: center; min-height: 32px; }
  @media (max-width: 991.98px) { .nl-auth .nl-auth__help a { min-height: 44px; } }
}
