/**
 * FILE: backend/public/static/css/legal-footer.css
 * PURPOSE: The legal links footer (partials/legal-footer.ejs) and the consent
 *          line (partials/legal-consent.ejs)
 * DESCRIPTION: Self-contained like console-nav.css: it declares its own --lf-*
 *              tokens (copied brand values) because it lands on pages with
 *              four different stylesheets: the landing, onboarding, the auth
 *              pages and the command center. The partial links this file
 *              itself, so a host page adds one include and nothing else.
 *              Pink marks hover, focus and the current page, nothing else.
 */

.lf,
.lf-consent {
  --lf-text: #a3a3a3;
  --lf-link: #e6e6e6;
  --lf-line: #333;
  --lf-iris: #ED166C;
  --lf-underline: rgba(255, 255, 255, 0.3);
  --lf-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

.lf {
  padding: 20px 24px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  border-top: 1px solid var(--lf-line);
  font-family: var(--lf-font);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--lf-text);
}

/* Inside a host page's own footer: the host supplies the side padding. */
.lf.is-bare {
  margin-top: 32px;
  padding: 20px 0 0;
}

.lf-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.lf-owner {
  margin: 0;
}

.lf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.lf-links a,
.lf-consent a {
  color: var(--lf-link);
  text-decoration: underline;
  text-decoration-color: var(--lf-underline);
  text-underline-offset: 3px;
}

/* 6px of padding keeps each link a comfortable target on touch screens. */
.lf-links a {
  display: inline-block;
  padding: 6px 0;
}

.lf-links a:hover,
.lf-consent a:hover,
.lf-links a[aria-current="page"] {
  color: #fff;
  text-decoration-color: var(--lf-iris);
}

.lf-links a:focus-visible,
.lf-consent a:focus-visible {
  outline: 2px solid var(--lf-iris);
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: none;
}

.lf-consent {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--lf-text);
}
