/* The legal subpages (Impressum, Privacy policy).

   Same world as the site: paper ground, Montserrat, tracked uppercase titles,
   hairlines, a steel underline on links. No motion and no scripting: these are
   documents, read once, so they are set as one quiet column on paper with the
   site's own footer under them. */

.legal-header {
  background: var(--paper);
  border-bottom: 1px solid rgb(15 16 18 / 0.12);
}

.legal-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--nav-h);
}

.legal-header__brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
}

.legal-header__brand img { width: 118px; }

/* Steps up with the home page's wordmark and bar height */
@media (min-width: 900px) {
  .legal-header__brand img { width: 144px; }
}

/* Same forced-colours case as the home page's solid bar: a black image on the theme's dark Canvas */
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .legal-header__brand img { filter: invert(1); }
}

.legal-header__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--track-small);
  padding-left: var(--track-small);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.3s var(--ease-out);
}

.legal-header__back:hover { text-decoration-color: var(--ink); }

/* The narrowest phones (320): the link holds one line beside a full-size wordmark */
@media (max-width: 22.4375rem) {
  .legal-header__bar { gap: 1rem; }
  .legal-header__back {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding-left: 0;
  }
}

/* ------------------------------------------------------------------
   The document
   ------------------------------------------------------------------ */

.legal {
  background: var(--paper);
  color: var(--text);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4.5rem, 10vw, 8rem);
}

/* One column, a comfortable measure for a long read */
.legal__column > * { max-width: 44rem; }

.legal__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--muted);
}

.legal__title {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.875rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  color: var(--ink);
}

.legal__updated {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.legal__body {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.legal__lead {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.legal__lead-note { color: var(--muted); }

.legal__section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid rgb(15 16 18 / 0.14);
}

.legal__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal__section h2 {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--ink);
}

.legal__body p { margin: 1rem 0 0; }
.legal__body h2 + p { margin-top: 0; }
.legal__body strong { font-weight: 500; color: var(--ink); }

.legal__body a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.3s var(--ease-out);
}

.legal__body a:hover { text-decoration-color: var(--ink); }

/* Lists: a hairline opens each item, as the sectors do under How we invest */
.legal__body ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.legal__body li {
  position: relative;
  padding-left: 1.75rem;
}

.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.75rem;
  height: 1px;
  background: rgb(15 16 18 / 0.3);
}

/* Name and value rows: the company's own details */
.legal__facts { margin: 0; }

.legal__fact {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgb(15 16 18 / 0.1);
}

.legal__fact:first-child { padding-top: 0; }

.legal__fact dt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--muted);
}

.legal__fact dd { margin: 0; color: var(--ink); }

@media (min-width: 40rem) {
  .legal__fact {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
  }
}

.legal__people { color: var(--ink); }

/* Blanks to be filled before publication: marked so they are easy to find, and
   plain to read in the meantime */
.legal__blank {
  color: var(--accent);
  border-bottom: 1px dashed rgb(62 90 110 / 0.5);
}

.legal__note {
  color: var(--muted);
  font-size: 1rem;
}
