/* Behind a Campaign — the second sheet, read right after style.css: footer, article page, privacy and terms, motion, not-found page, cookie banner. */

/* footer */

.footer {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(40px, 6vw, 80px) 28px;
}
.footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-name {
  font-weight: 500;
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.footer .label { color: var(--mute-ink); }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--mute-ink); border-bottom: 1px solid transparent; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; border-bottom-color: #fff; outline: none; }

/* ---------- the 404 page and the back link on privacy and terms ---------- */

.article .rail { padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 128px); }
.back {
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}
.back:hover, .back:focus-visible { color: var(--ink); border-bottom-color: var(--ink); outline: none; }
.article-line {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 20px;
  max-width: 40ch;
}
.article-foot {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- privacy and terms: one plain reading column (docs/engine/site.md under Template once) ---------- */

.legal .rail { padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 128px); }
.legal-col { max-width: 680px; margin-inline: auto; }
.legal-title {
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.legal-lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 24px;
}
.legal-part {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
#downloads {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal-part h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.legal-part p { line-height: 1.65; }
.legal-part p + p { margin-top: 1em; }
.legal-part strong { font-weight: 500; }
.legal-part a { text-decoration: underline; text-underline-offset: 0.18em; }
.legal-part code { font-family: var(--mono); font-size: 0.85em; }
.legal-act { margin-top: 1.4em; }
/* a legal fact he has not given yet: loud on purpose, so it cannot ship unnoticed */
.blank {
  background: var(--fog);
  color: var(--ink);
  outline: 1px dashed var(--ink);
  outline-offset: 1px;
  border-radius: 2px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .nav-list a, .back, .btn, .footer-links a, .field-row input, .field-row textarea {
    transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
  }
}

/* ---------- not-found page: fills the screen so the footer sits at the bottom ---------- */

.page-lost { min-height: 100svh; display: flex; flex-direction: column; }
.page-lost main, .page-lost main > .article, .page-lost main .wrap, .page-lost main .rail { flex: 1; display: flex; flex-direction: column; }

/* ---------- cookie banner ----------
   Look: SITE-STYLE.md under Cookie banner. It appears; it does not slide. */
.cookies {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  background: var(--sheet);
  border-top: 1.5px solid var(--ink);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cookies-text { margin: 0; }
.cookies-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }
.cookies-acts { display: flex; gap: 8px; width: 100%; }
.cookies-btn {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.cookies-btn:hover { background: var(--fog); }
.cookies-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 760px) {
  .cookies { flex-wrap: nowrap; padding: 14px var(--gutter); }
  .cookies-text { margin-right: auto; }
  .cookies-acts { width: auto; flex: none; }
  .cookies-btn { flex: none; width: 96px; }
}
