@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("assets/zilla-slab-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("assets/zilla-slab-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("assets/zilla-slab-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #111411;
  background: #f6f6f3;
  font-family:
    "Noto Sans", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: 72px;
  color: #111411;
  background:
    radial-gradient(circle at 88% 10%, rgba(127, 165, 141, 0.09), transparent 27rem),
    linear-gradient(180deg, #f8f8f6 0%, #f3f3f1 100%);
}

a {
  color: inherit;
}

.legal-shell {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

@media (min-width: 761px) {
  .legal-shell {
    width: 1040px;
  }
}

.legal-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: rgba(248, 248, 246, 0.94);
  border-bottom: 1px solid #00eb1c;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-header-inner {
  display: flex;
  width: min(1160px, calc(100% - 48px));
  min-height: 72px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  width: 128px;
  align-items: center;
}

.legal-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.legal-brand.legal-brand-river-only {
  width: 96px;
  overflow: hidden;
}

.legal-brand.legal-brand-river-only img {
  width: 128px;
  max-width: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.legal-nav a,
.legal-back,
button {
  font-family: "Zilla Slab", Georgia, serif;
  font-style: italic;
}

h1,
h2 {
  font-weight: 600;
  font-variation-settings: normal;
}

body,
p,
li,
address,
label,
input,
textarea,
select {
  font-family: "Noto Sans", Arial, sans-serif;
}

.legal-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.legal-nav a {
  color: #00eb1c;
  font-size: 0.76rem;
  font-weight: 540;
  text-decoration: none;
  transition: color 180ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: #00c918;
}

.legal-back {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  gap: 9px;
  color: #3e4841;
  border: 1px solid rgba(27, 38, 31, 0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 580;
  text-decoration: none;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #102014;
  background: #00eb1c;
  border-color: #00eb1c;
  transform: translateY(-1px);
}

.legal-hero {
  padding: clamp(86px, 10vw, 148px) 0 clamp(62px, 7vw, 94px);
}

.legal-eyebrow {
  margin: 0 0 20px;
  color: #647169;
  font-size: 0.69rem;
  font-weight: 660;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: #0c0f0d;
  font-size: clamp(2.7rem, 5.7vw, 5.25rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.legal-lead {
  max-width: 620px;
  margin: 34px 0 0;
  color: #59615c;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.legal-hero-compact {
  padding-bottom: clamp(54px, 6vw, 78px);
}

.legal-document-section {
  padding: clamp(70px, 8vw, 112px) 0 clamp(100px, 10vw, 150px);
}

.legal-document {
  color: #3f4742;
}

.legal-document > p {
  max-width: 78ch;
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.78;
}

.legal-document h2 {
  max-width: 36ch;
  margin: 88px 0 30px;
  padding-top: 34px;
  color: #111411;
  border-top: 1px solid #00eb1c;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 640;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.legal-document h2:first-of-type {
  margin-top: 66px;
}

.legal-document h3 {
  max-width: 42ch;
  margin: 42px 0 14px;
  color: #18201a;
  font-size: 1.05rem;
  font-weight: 680;
  line-height: 1.35;
}

.legal-document a {
  color: #00eb1c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-loading,
.legal-error {
  color: #68716b;
}

.imprint-section {
  padding-top: clamp(58px, 7vw, 96px);
}

.imprint-layout {
  display: grid;
  gap: clamp(74px, 9vw, 124px);
}

.imprint-company {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(48px, 7vw, 96px);
}

.imprint-logo-wrap {
  display: flex;
  min-height: 240px;
  padding: 20px 4px 20px 44px;
  align-items: center;
  justify-content: center;
}

.imprint-logo {
  display: block;
  width: 100%;
  height: auto;
}

.imprint-address {
  color: #465049;
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.75;
}

.imprint-address h2,
.imprint-disclaimer h2 {
  margin: 0 0 30px;
  color: #111411;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.imprint-address p {
  margin: 0 0 22px;
}

.imprint-address a,
.imprint-disclaimer a {
  color: #00eb1c;
  text-underline-offset: 3px;
}

.imprint-agb-link {
  display: inline-flex;
  max-width: 620px;
  align-items: flex-start;
  gap: 10px;
  font-weight: 580;
  line-height: 1.55;
}

.imprint-agb-link span {
  flex: 0 0 auto;
}

.imprint-disclaimer {
  max-width: 820px;
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid #00eb1c;
}

.imprint-disclaimer p {
  margin: 0 0 22px;
  color: #465049;
  font-size: 0.98rem;
  line-height: 1.78;
}

.legal-footer {
  display: flex;
  width: min(1160px, calc(100% - 48px));
  min-height: 112px;
  margin-inline: auto;
  padding: 30px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #637069;
  border-top: 1px solid #00eb1c;
  font-size: 0.75rem;
}

.legal-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
}

.legal-footer-brand img {
  width: 24px;
  height: auto;
}

.legal-footer nav {
  display: flex;
  gap: 20px;
}

.legal-footer nav a {
  color: #00eb1c;
  text-decoration: none;
}

.legal-footer nav a:hover,
.legal-footer nav a:focus-visible,
.legal-footer nav a[aria-current="page"] {
  color: #00c918;
}

/* Darker, slightly larger supporting text throughout the legal pages. */
.legal-lead,
.legal-document,
.legal-document > p,
.imprint-address,
.imprint-disclaimer p,
.legal-loading,
.legal-error,
.legal-footer {
  color: #111411;
}

.legal-document > p,
.imprint-address,
.imprint-disclaimer p {
  font-size: 1.03rem;
}

.legal-footer {
  font-size: 0.8rem;
}

.legal-nav a,
.legal-back {
  color: #111411;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  body {
    padding-top: 64px;
  }

  .legal-shell,
  .legal-header-inner,
  .legal-footer {
    width: min(100% - 48px, 560px);
  }

  .legal-header-inner {
    min-height: 64px;
  }

  .legal-brand {
    width: 103px;
  }

  .legal-brand.legal-brand-river-only {
    width: 78px;
  }

  .legal-brand.legal-brand-river-only img {
    width: 103px;
  }

  .legal-nav {
    display: none;
  }

  .legal-back {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.75rem;
  }

  .legal-hero {
    padding: 78px 0 58px;
  }

  .legal-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.35rem);
    line-height: 0.94;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .legal-lead {
    margin-top: 24px;
    font-size: 0.94rem;
  }

  .legal-document-section {
    padding: 52px 0 86px;
  }

  .legal-document > p {
    margin-bottom: 20px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .legal-document h2 {
    margin-top: 66px;
    padding-top: 28px;
    font-size: 1.35rem;
    line-height: 1.22;
  }

  .legal-document h3 {
    margin-top: 34px;
    font-size: 1rem;
  }

  .imprint-layout {
    gap: 70px;
  }

  .imprint-company {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .imprint-logo-wrap {
    min-height: 0;
    padding: 24px;
    border-radius: 18px;
  }

  .imprint-address,
  .imprint-disclaimer p {
    font-size: 0.96rem;
  }

  .imprint-address h2,
  .imprint-disclaimer h2 {
    margin-bottom: 24px;
    font-size: 1.4rem;
  }

  .legal-footer {
    padding: 28px 0 max(32px, env(safe-area-inset-bottom));
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-footer nav {
    width: 100%;
    justify-content: flex-end;
    gap: 16px;
  }
}
