:root {
  --green: #24b80f;
  --green-dark: #148d0a;
  --green-deep: #0c6f08;
  --green-soft: #effbea;
  --green-pale: #f7fdf5;
  --yellow: #ffb500;
  --purple: #9854ea;
  --blue: #2f8df6;
  --ink: #0d1523;
  --muted: #586277;
  --line: #dfe7dd;
  --surface: #ffffff;
  --surface-subtle: #f7faf5;
  --shadow: 0 18px 46px rgb(18 61 16 / 9%), 0 2px 7px rgb(15 23 42 / 5%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface-subtle);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(255 181 0 / 70%);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(223 231 221 / 80%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: #23aa10;
  font-weight: 850;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand {
  gap: 8px;
  font-size: 25px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(14 105 7 / 15%);
}

.brand-bolt {
  width: 22px;
  height: 28px;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--green-pale);
  font-size: 13px;
  font-weight: 750;
}

.legal-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #4c586d;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.legal-nav a:hover {
  color: var(--green-dark);
  transform: translateY(-1px);
}

.legal-nav a[aria-current="page"] {
  background: var(--green);
  box-shadow: 0 4px 10px rgb(26 150 12 / 20%);
  color: #fff;
}

.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 74px 0 82px;
  background:
    radial-gradient(circle at 10% 10%, rgb(255 255 255 / 22%) 0 4px, transparent 5px),
    radial-gradient(circle at 87% 25%, rgb(255 189 0 / 75%) 0 5px, transparent 6px),
    linear-gradient(132deg, #2cc517 0%, #1aac0d 52%, #139108 100%);
  color: #fff;
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.legal-hero::before {
  top: -90px;
  right: -70px;
  width: 360px;
  height: 360px;
  border: 62px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
}

.legal-hero::after {
  right: -2%;
  bottom: -115px;
  left: -2%;
  height: 260px;
  background: url("./images/clouds.png") center bottom / 1120px auto no-repeat;
  opacity: 0.14;
}

.hero-content {
  position: relative;
  max-width: 790px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: rgb(255 255 255 / 13%);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgb(255 181 0 / 18%);
  content: "";
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 880;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.legal-hero .lead {
  max-width: 700px;
  margin: 23px 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: rgb(255 255 255 / 86%);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.document-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.document-meta li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  content: "";
  opacity: 0.72;
}

.legal-main {
  position: relative;
  z-index: 2;
  padding: 42px 0 74px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.toc,
.publisher-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(16 46 14 / 5%);
}

.toc {
  padding: 20px 17px 17px;
}

.toc h2,
.publisher-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.toc li {
  counter-increment: legal-toc;
}

.toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  align-items: start;
  padding: 7px 8px;
  border-radius: 9px;
  color: #586277;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  transition: background-color 150ms ease, color 150ms ease;
}

.toc a::before {
  color: var(--green-dark);
  content: counter(legal-toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.toc a:hover,
.toc a:focus-visible {
  background: var(--green-soft);
  color: var(--green-deep);
}

.publisher-card {
  padding: 19px 18px;
}

.publisher-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.publisher-card strong {
  color: var(--ink);
}

.publisher-card a {
  color: var(--green-dark);
  font-weight: 780;
}

.legal-document {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.summary-card,
.legal-section,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-color: #bce5af;
  background:
    radial-gradient(circle at 96% 8%, rgb(255 181 0 / 25%) 0 7px, transparent 8px),
    linear-gradient(145deg, #effbea, #fbfff9);
}

.summary-card::after {
  position: absolute;
  right: -48px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 24px solid rgb(36 184 15 / 8%);
  border-radius: 50%;
  content: "";
}

.summary-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.summary-card > p {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 12px 0 0;
  color: #415047;
  font-size: 16px;
  line-height: 1.65;
}

.summary-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.summary-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgb(129 195 111 / 45%);
  border-radius: 16px;
  background: rgb(255 255 255 / 78%);
}

.summary-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 900;
}

.summary-point strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.summary-point span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.legal-section {
  padding: clamp(25px, 4vw, 42px);
  scroll-margin-top: 96px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--green-soft);
  font-variant-numeric: tabular-nums;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3.5vw, 34px);
  font-weight: 860;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.legal-section h3 {
  margin: 29px 0 9px;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.legal-section p,
.legal-section li,
.contact-card p {
  color: #465166;
  font-size: 15px;
  line-height: 1.72;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 18px;
  padding-left: 23px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section strong {
  color: var(--ink);
}

.legal-section a,
.contact-card a {
  color: var(--green-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgb(20 141 10 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section a:hover,
.contact-card a:hover {
  text-decoration-color: currentColor;
}

.note,
.warning-note,
.privacy-note {
  margin: 22px 0;
  padding: 17px 19px;
  border-radius: 16px;
}

.note {
  border: 1px solid #b9e5ae;
  background: var(--green-pale);
}

.warning-note {
  border: 1px solid #f0d9a7;
  background: #fff9ea;
}

.privacy-note {
  border: 1px solid #c9ddf8;
  background: #f4f8ff;
}

.note p,
.warning-note p,
.privacy-note p {
  margin: 0;
  color: #3f4b5d;
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  margin: 18px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.legal-table th,
.legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e7ede5;
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: var(--green-pale);
  color: #263229;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table td {
  color: #4b5669;
  font-size: 13px;
  line-height: 1.55;
}

.legal-table td strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e7ede5;
}

.definition-list dt {
  background: var(--green-pale);
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.definition-list dd {
  color: #4b5669;
  font-size: 13px;
  line-height: 1.6;
}

.definition-list dt:last-of-type,
.definition-list dd:last-of-type {
  border-bottom: 0;
}

.liability-box {
  margin: 24px 0 0;
  padding: 23px;
  border: 2px solid #b9dfae;
  border-radius: 18px;
  background: linear-gradient(145deg, #f4fced, #fff);
}

.liability-box h3 {
  margin-top: 0;
  color: var(--green-deep);
}

.liability-box p:last-child {
  margin-bottom: 0;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(27px, 4vw, 40px);
  border-color: #229f13;
  background: linear-gradient(140deg, #159d0a, #26b713);
  color: #fff;
}

.contact-card::after {
  position: absolute;
  right: -44px;
  bottom: -57px;
  width: 180px;
  height: 180px;
  border: 34px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: "";
}

.contact-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 860;
  letter-spacing: -0.045em;
}

.contact-card p {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 11px 0 0;
  color: rgb(255 255 255 / 88%);
}

.contact-card a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 55%);
}

.contact-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(8 83 5 / 24%);
  color: var(--green-deep) !important;
  font-size: 14px;
  font-weight: 830;
  text-decoration: none !important;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.contact-button:hover {
  box-shadow: 0 10px 24px rgb(8 83 5 / 31%);
  transform: translateY(-2px);
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  min-height: 94px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #687085;
  font-size: 11px;
}

.footer-brand {
  gap: 6px;
  justify-self: start;
  color: #23aa10;
  font-size: 18px;
}

.footer-brand > img:first-child {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}

.footer-brand .footer-bolt {
  width: 17px;
  height: 21px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  font-weight: 680;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.copyright {
  margin: 0;
  justify-self: end;
}

@media (max-width: 920px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 20px;
  }

  .footer-links {
    justify-self: end;
  }

  .copyright {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 80px;
  }

  .container {
    width: min(100% - 28px, 560px);
  }

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

  .brand {
    gap: 6px;
    font-size: 20px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-bolt {
    width: 17px;
    height: 22px;
  }

  .legal-nav {
    gap: 3px;
    padding: 4px;
  }

  .legal-nav a {
    padding: 7px 10px;
    font-size: 11px;
  }

  .legal-nav .home-link {
    display: none;
  }

  .legal-hero {
    padding: 54px 0 62px;
  }

  .legal-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .legal-hero .lead {
    font-size: 17px;
  }

  .legal-main {
    padding: 24px 0 50px;
  }

  .legal-sidebar {
    grid-template-columns: 1fr;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .legal-section,
  .contact-card {
    border-radius: 21px;
  }

  .summary-card,
  .legal-section {
    padding: 23px 20px;
  }

  .summary-points {
    grid-template-columns: 1fr;
  }

  .definition-list {
    grid-template-columns: 1fr;
  }

  .definition-list dt,
  .definition-list dd {
    border-bottom: 1px solid #e7ede5;
  }

  .definition-list dd:last-of-type {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .copyright {
    grid-column: auto;
    justify-self: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .legal-header,
  .legal-sidebar,
  .legal-footer,
  .contact-button {
    display: none !important;
  }

  .legal-hero {
    padding: 24px 0;
    background: #fff;
    color: #000;
  }

  .legal-hero::before,
  .legal-hero::after {
    display: none;
  }

  .legal-hero .lead,
  .document-meta {
    color: #333;
  }

  .eyebrow {
    border-color: #999;
    background: #fff;
    color: #000;
  }

  .legal-main {
    padding: 0;
  }

  .legal-shell,
  .legal-document {
    display: block;
  }

  .summary-card,
  .legal-section,
  .contact-card {
    margin: 0 0 14px;
    break-inside: avoid;
    border: 1px solid #aaa;
    box-shadow: none;
  }

  .contact-card {
    background: #fff;
    color: #000;
  }

  .contact-card p,
  .contact-card a {
    color: #333;
  }
}
