/* Legal documents.
 *
 * These pages exist to be read closely by someone deciding whether to
 * trust Emovera with employee records -- a procurement officer, a lawyer,
 * a ministry reviewer. So they are set for reading, not for scanning: a
 * measure that stops around 70 characters, generous leading, numbered
 * sections that can be cited, and no decoration competing with the text.
 *
 * It inherits the site's own tokens from styles.css and adds only what a
 * long document needs. Both scripts are handled: the measure is set in
 * ch units so it holds when app.js flips the page to English and back. */

.legal { background: var(--bg, #080910); }

/* styles.css gives every <section> 86px of vertical padding, which is
 * right for a marketing page built of full-height bands and wrong for a
 * numbered contract. And the skip link is hidden in hrai.css, which these
 * pages do not load -- without this it renders as visible text above the
 * header. Both are overridden here rather than by loading the whole
 * marketing stylesheet for two rules. */
.legal .skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: .5rem;
  z-index: 50;
  padding: .55rem .9rem;
  background: var(--accent, #c9a227);
  color: #0b0b0f;
  border-radius: 6px;
  text-decoration: none;
}

.legal .skip:focus { inset-inline-start: .5rem; }

.legal section { padding-block: 0; }

.lg {
  max-width: 74ch;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
}

.lg-kicker {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent, #c9a227);
  margin: 0 0 .9rem;
}

.lg h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 .75rem;
}

.lg-meta {
  font-size: .9rem;
  opacity: .62;
  margin: 0 0 1.75rem;
}

.lg-lede {
  font-size: 1.08rem;
  line-height: 1.95;
  opacity: .92;
  padding-bottom: 1.75rem;
  margin: 0 0 .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.lg-sec { margin-top: 2.9rem; scroll-margin-top: 5rem; }

.lg-sec h2 {
  font-size: 1.16rem;
  line-height: 1.5;
  margin: 0 0 .85rem;
  /* A numbered heading is a citable heading. Someone writing back to say
   * "clause 9 is unacceptable" needs the number to be part of the text,
   * not generated by a counter they cannot copy. */
}

.lg-sec p {
  line-height: 1.95;
  margin: 0 0 1rem;
  opacity: .88;
}

.lg-sec ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
}

.lg-sec li {
  line-height: 1.9;
  margin-bottom: .6rem;
  opacity: .88;
}

.lg-sec li::marker { color: var(--accent, #c9a227); }

/* The practitioner disclosure the E-Commerce Law requires. It sits in the
 * footer of every page, including the marketing pages, because the duty
 * is to disclose -- not to disclose somewhere a reader might find it. */
.foot-legal { font-size: .86rem; line-height: 1.8; opacity: .72; }
.foot-legal p { margin: 0 0 .5rem; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.15rem;
  margin-top: .85rem;
}

.foot-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  padding-bottom: 1px;
}

.foot-links a:hover,
.foot-links a:focus-visible { border-bottom-color: var(--accent, #c9a227); }

/* Anything still to be confirmed before publication renders as a visible
 * marker rather than an empty gap, so a placeholder cannot reach a client
 * unnoticed. */
.lg-sec p:has(+ p),
.lg-sec p { word-break: break-word; }

@media print {
  header, footer nav, .lang-switch, .skip { display: none; }
  .legal { background: #fff; }
  .lg { max-width: none; padding: 0; }
  .lg-sec p, .lg-sec li { opacity: 1; color: #000; }
}

@media (max-width: 640px) {
  .lg { padding: 3rem 1.1rem 3.5rem; }
  .lg-sec { margin-top: 2.2rem; }
}
