@import url("/CSS/theme.css");
/* Legal document pages — Privacy Policy & Terms (BACKEND-PLAN.md Step 33).
   Self-contained (own palette vars) so a legal page renders correctly even if
   nothing else on the site loads. Optimised for long-form reading. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--nd-bg);
  color: var(--nd-text-quiet);
  font-family: var(--nd-font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--nd-divider);
  position: sticky;
  top: 0;
  background: var(--nd-topbar-bg);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.legal-topbar a.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nd-white);
  text-decoration: none;
  font-weight: 600;
}

.legal-topbar img {
  height: 28px;
  width: auto;
}

.legal-topbar nav a {
  color: var(--nd-grey-light);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

.legal-topbar nav a:hover {
  color: var(--nd-white);
}

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

/* Long-form reading wants the body's own typography, not ND.css's display
   type scale — these headings sit in running text, not on a landing page. */
.legal-wrap h1,
.legal-wrap h2,
.legal-wrap h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: inherit;
  /* `inherit`, not `normal`: these follow the body's rhythm, and since the
     body carries --nd-tracking that is no longer the same thing as zero. */
  letter-spacing: inherit;
}

.legal-wrap h1 {
  color: var(--nd-white);
  font-size: clamp(28px, 5vw, 40px);
  margin: 8px 0 4px;
}

.legal-updated {
  color: var(--nd-grey);
  font-size: 14px;
  margin: 0 0 28px;
}

.legal-notice {
  border: 1px solid var(--nd-glow-action);
  background: var(--nd-glow-action-wash);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--nd-grey-light);
}

.legal-notice strong {
  color: var(--nd-white);
}

.legal-wrap h2 {
  color: var(--nd-white);
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 8px;
}

.legal-wrap h3 {
  color: var(--nd-white);
  font-size: 16px;
  margin: 24px 0 8px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 15px;
}

.legal-wrap a {
  color: var(--nd-action);
  /* ND.css strips underlines site-wide, which is right for nav and buttons
     and wrong here: inside a paragraph of legal text the underline is what
     marks the link. Chrome, the navbar and the TOC keep the stripped look —
     they're all classed, so they never hit this rule. */
  text-decoration: underline;
}

.legal-wrap ul {
  padding-left: 22px;
}

.legal-wrap li {
  margin: 6px 0;
}

/* [placeholder] tokens the site owner must fill before launch. */
.legal-wrap .fill {
  color: var(--nd-warn);
  font-style: normal;
  white-space: nowrap;
}

.legal-toc {
  border: 1px solid var(--nd-divider);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 12px;
  background: var(--nd-surface);
}

.legal-toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}

.legal-toc a {
  color: var(--nd-grey-light);
  text-decoration: none;
  font-size: 14px;
}

.legal-toc a:hover {
  color: var(--nd-white);
}

.legal-footer {
  border-top: 1px solid var(--nd-divider);
  margin-top: 56px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--nd-grey);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: var(--nd-grey-light);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--nd-white);
}

@media (max-width: 600px) {
  .legal-toc ol {
    columns: 1;
  }
}
