/* =========================================================================
   Legal documents — privacy, cookies, terms, contact — and the 404 page.

   These pages load `yer-theme.css` for the brand tokens and typefaces, then
   this file for document layout. They deliberately do NOT load `styles.css`:
   that file is the scan's application layout, several hundred rules of chat
   column, heat map and one-pager, none of which a page of running text needs.
   The cost of that choice is that `--navy` lives in styles.css, so it is
   re-declared here — the one token yer-theme.css consumes but does not define.

   A legal page has one job beyond being correct: be readable. Hence a single
   measured column, real paragraph spacing, and tables that scroll instead of
   squeezing on a phone.
   ========================================================================= */

:root {
  --navy: #19224C;
}

body.lg {
  margin: 0;
  background: var(--bg);
  color: var(--mute);
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.lg-top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
}
.lg-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.lg-logo { display: block; height: 32px; width: auto; }
.lg-home-label {
  font-weight: 600;
  font-size: 15px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

/* ---------- inter-document nav ---------- */
.lg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 22px;
}
.lg-nav-item {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--mute);
  font-size: 13.5px;
  text-decoration: none;
}
.lg-nav-item:hover { border-color: var(--navy); color: var(--navy); }
/* The current document is a state, not a link target. Amber fill is the
   house's one accent; navy text on it clears contrast where white would not. */
.lg-nav-item.is-here {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  font-weight: 600;
}

/* ---------- the document ---------- */
.lg-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}
.lg-doc h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: var(--navy);
  margin: 12px 0 18px;
}
.lg-doc h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 10px;
}
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul { margin: 0 0 14px; padding-left: 22px; }
.lg-doc li { margin-bottom: 7px; }
.lg-doc a { color: var(--navy); text-decoration: underline; }
.lg-doc a:hover { color: var(--amber-dk); }
.lg-doc b { color: var(--navy); font-weight: 600; }

.lg-lede {
  font-size: 17.5px;
  line-height: 1.65;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.lg-doc address {
  font-style: normal;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 14px;
  line-height: 1.6;
}

/* A caution the reader has to see before they type, so it is set apart rather
   than buried in a paragraph. */
.lg-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
}

.lg-updated {
  margin-top: 46px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- tables ----------
   Wrapped in their own scroll container: a four-column recipients table cannot
   fit a 360px phone, and a page that scrolls sideways as a whole is broken. */
.lg-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.lg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
}
.lg-table th, .lg-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
}
.lg-table thead th {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--bg);
  white-space: nowrap;
}
.lg-table tbody th { color: var(--navy); font-weight: 600; min-width: 170px; }
.lg-table tr:last-child th, .lg-table tr:last-child td { border-bottom: none; }

/* ---------- footer ---------- */
.lg-foot {
  background: var(--navy);
  color: #C9CCDA;
  padding: 34px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.lg-foot-block { min-width: 240px; font-size: 14.5px; line-height: 1.7; }
.lg-foot-block h2 {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.lg-foot-block address { font-style: normal; }
.lg-foot-block p { margin: 10px 0 0; }
.lg-foot-block ul { list-style: none; margin: 0; padding: 0; }
.lg-foot-block li { margin-bottom: 5px; }
.lg-foot a { color: #FFFFFF; text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }
.lg-foot-reg { color: #8F95AC; font-size: 13px; }

/* ---------- the 404 page ---------- */
.lg-404 { text-align: center; padding: 64px 22px 80px; }
.lg-404-code {
  font-family: var(--font-num);
  font-size: 76px;
  line-height: 1;
  color: var(--amber);
  margin: 0;
}
.lg-404 h1 { margin: 10px 0 14px; }
.lg-404 p { max-width: 460px; margin: 0 auto 22px; }
.lg-404-cta {
  display: inline-block;
  /* Beats `.lg-doc a { text-decoration: underline }` — it is a button, and an
     underlined button reads as a broken one. */
  text-decoration: none;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 24px;
}
.lg-404-cta:hover { background: var(--amber-hover); }

@media (max-width: 560px) {
  .lg-doc h1 { font-size: 28px; }
  .lg-lede { font-size: 16px; }
  .lg-foot { gap: 26px; }
}
