/* int_legal — the standard legal document set.
 *
 * This stylesheet ADDS emphasis to the conspicuous blocks. It does not CREATE it:
 * every one of those blocks is already written in capitals in the template source,
 * because a rule that lives only in a stylesheet is not part of the document. It does
 * not survive copy-paste, reader mode, a PDF print, or a stylesheet that failed to
 * load — and every one of those is how a court ends up reading the clause. So this
 * file must never case-shift a clause from a rule: doing so silently converts a
 * conspicuous disclaimer into an inconspicuous one, which is the single commonest
 * reason a limitation clause is struck. The devops guard that enforces that reads
 * this file as text and cannot tell a comment from a rule, which is why the property
 * is described here in words rather than by naming the CSS declaration.
 *
 * There is no inline style and no <style> block anywhere in this package: both
 * consuming CSP policies set style-src-attr 'none' with a nonce-only style-src, so an
 * inline rule is dropped in one product and blocked in another.
 */

.int-legal {
  max-width: 52rem;
}

/* Plain-CSS equivalents of the Bootstrap utility/component classes this template's
 * documents list uses (`container`, `py-5`, `h2`, `mb-*`, `text-body-secondary`,
 * `list-group*`, `fw-semibold`, `small`, `d-block`). int_intelligena loads no
 * Bootstrap at all, so without these rules the list fell back to browser defaults —
 * every link and its description ran together with no separation. Scoped under
 * `.int-legal` so a product that DOES load Bootstrap (prac_com, int_lms) is unaffected:
 * these rules are compatible with Bootstrap's own list-group look rather than fighting
 * it, and Bootstrap's more specific/later rules simply apply on top where present. */
.int-legal .container { width: 100%; max-width: 100%; margin: 0 auto; }
.int-legal .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.int-legal .h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 0; }
.int-legal .mb-2 { margin-bottom: .5rem; }
.int-legal .mb-4 { margin-bottom: 1.5rem; }
.int-legal .mb-5 { margin-bottom: 3rem; }
.int-legal .text-body-secondary { color: rgba(0, 0, 0, .65); }
.int-legal .small { font-size: .875rem; }
.int-legal .d-block { display: block; }
.int-legal .fw-semibold { font-weight: 600; }

.int-legal .list-group {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: .5rem;
  overflow: hidden;
}
.int-legal .list-group-item {
  display: block;
  padding: .9rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.int-legal .list-group-item:last-child { border-bottom: 0; }
.int-legal .list-group-item .small { margin-top: .2rem; }
.int-legal .list-group-item-action:hover,
.int-legal .list-group-item-action:focus-visible {
  background-color: rgba(0, 0, 0, .035);
}

.int-legal-body h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.int-legal-body h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.int-legal-body li {
  margin-bottom: .4rem;
}

.int-legal-body ol > li {
  padding-left: .25rem;
}

/* The conspicuous blocks. Bordered, tinted and set in a slightly heavier face so the
 * clause is visually distinct from body text as well as textually distinct. */
.int-legal-conspicuous {
  font-weight: 600;
  line-height: 1.55;
  background-color: rgba(0, 0, 0, .035);
  /* style and colour as well as width: the markup carries Bootstrap's `.border`
   * utility, but int_intelligena ships no Bootstrap and a width with no style computes
   * to 0. Measured there as borderTopWidth: 0px — a conspicuous block with no frame. */
  border: 2px solid rgba(0, 0, 0, .45) !important;
  border-radius: .375rem;
  padding: 1rem;
  margin: 1.25rem 0;
}

.int-legal-callout {
  background-color: rgba(0, 0, 0, .02);
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: .375rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.int-legal-meta {
  letter-spacing: .01em;
}

.int-legal-address {
  font-style: normal;
}

.int-legal-contact dt {
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .int-legal-conspicuous {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .5) !important;
  }
  .int-legal-callout {
    background-color: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .25);
  }
  .int-legal .text-body-secondary { color: rgba(255, 255, 255, .68); }
  .int-legal .list-group { border-color: rgba(255, 255, 255, .18); }
  .int-legal .list-group-item { border-bottom-color: rgba(255, 255, 255, .14); }
  .int-legal .list-group-item-action:hover,
  .int-legal .list-group-item-action:focus-visible {
    background-color: rgba(255, 255, 255, .05);
  }
}

@media print {
  .int-legal { max-width: none; }
  .int-legal-conspicuous { border: 2px solid #000 !important; background: none; }
}
