/* Sprout legal pages. One stylesheet, no external fonts, scripts or images. Colours are the app's: teal #013F32, lime #E7FE25. */
:root {
  color-scheme: light dark;
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --text: #1C1C1E;
  --muted: #55555A;
  --line: #E1E1E6;
  --brand: #013F32;
  --brand-deep: #01231C;
  --lime: #E7FE25;
  --lime-deep: #C9DE0F;
  --link: #013F32;
  --tint: #F3FAC9;
  --focus: #013F32;
  --shadow: 0 1px 2px rgba(1, 35, 28, 0.06), 0 8px 24px rgba(1, 35, 28, 0.06);
  --radius: 18px;
  --measure: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark mode: a near-black page, deep Sprout greens (from #013F32 downwards) for cards and panels, lime only as the accent. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050807;
    --surface: #08211B;
    --text: #F4F7F5;
    --muted: #B9C7C0;
    --line: #17372D;
    --link: #E7FE25;
    --tint: #0D2D24;
    --focus: #E7FE25;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
}

.wrap.wide {
  width: min(100% - 2rem, 62rem);
}

/* ---- top bar -------------------------------------------------------------- */

.bar {
  padding-block: 1rem;
}

.bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--line);
  background: var(--surface);
}

.nav a[aria-current="page"] {
  background: var(--brand);
  color: var(--lime);
}

@media (prefers-color-scheme: dark) {
  .nav a[aria-current="page"] {
    background: var(--lime);
    color: var(--brand-deep);
  }
}

/* ---- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-block: 0.5rem 1.75rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(231, 254, 37, 0.09), rgba(231, 254, 37, 0) 55%),
    linear-gradient(150deg, #025040 0%, #013F32 45%, #01231C 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem);
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--lime);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 40rem) {
  .hero-grid.with-mascot {
    grid-template-columns: 1fr auto;
  }
}

.hero .eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--lime);
  color: #013F32;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.hero .updated {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero .mascot-big {
  width: clamp(6.5rem, 22vw, 10rem);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #013F32;
}

.btn.primary:hover {
  background: var(--lime-deep);
}

.hero :focus-visible {
  outline-color: var(--lime);
}

/* ---- cards and sections ---------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
}

.card + .card,
.card + .toc,
.toc + .card,
section + section {
  margin-top: 1.25rem;
}

.short {
  background: var(--tint);
  border-color: transparent;
  border-left: 5px solid var(--lime-deep);
}

.short h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.short ul {
  margin: 0;
  padding-left: 1.2rem;
}

.short li + li {
  margin-top: 0.35rem;
}

.toc h2 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
  columns: 1;
}

@media (min-width: 40rem) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

.toc li {
  break-inside: avoid;
  padding-block: 0.12rem;
}

main section {
  scroll-margin-top: 1.25rem;
}

main h2.num {
  counter-increment: sec;
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

main h2.num::before {
  content: counter(sec) ". ";
  color: var(--muted);
  font-weight: 600;
}

.legal {
  counter-reset: sec;
}

main h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

main p {
  margin: 0.6rem 0;
}

main ul,
main ol.steps {
  margin: 0.6rem 0;
  padding-left: 1.3rem;
}

main li + li {
  margin-top: 0.35rem;
}

.plain {
  margin: 0.2rem 0 0.8rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: var(--tint);
  color: var(--text);
  font-weight: 600;
}

.plain::before {
  content: "In plain words: ";
  font-weight: 800;
}

.note {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.97rem;
}

.sec-title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sec-title.big {
  font-size: 1.5rem;
}

.gap-top {
  margin-top: 1.25rem;
}

.card.link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card.link:hover {
  border-color: var(--brand);
}

.card.link h3 {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---- tables ---------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

caption {
  text-align: left;
  padding: 0.7rem 0.9rem 0;
  font-weight: 700;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
}

thead th {
  border-top: 0;
  background: var(--bg);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- feature cards on the home page ---------------------------------------- */

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 46rem) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid .card {
  margin-top: 0;
}

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.grid .card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: var(--brand);
  color: var(--lime);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---- footer ---------------------------------------------------------------- */

.foot {
  margin-top: 3rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.97rem;
}

.foot .wrap {
  display: grid;
  gap: 1rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot p {
  margin: 0;
}

address {
  font-style: normal;
}

/* Dark mode, hero: the deepest greens only (nothing lighter than #013F32). */
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(120% 90% at 0% 0%, rgba(231, 254, 37, 0.06), rgba(231, 254, 37, 0) 55%),
      linear-gradient(150deg, #013F32 0%, #012E25 48%, #01231C 100%);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .bar,
  .actions,
  .skip,
  .toc {
    display: none;
  }
  .hero {
    background: none;
    color: #000;
    box-shadow: none;
    border: 1px solid #000;
  }
  .hero p,
  .hero .updated {
    color: #000;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
  a {
    color: #000;
  }
}
