:root {
  color: #1d2522;
  background: #f2f4f3;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #fdfefd;
  --line: #d9dedb;
  --text: #1d2522;
  --muted: #56615b;
  --primary: #168b5f;
  --primary-strong: #0b6e49;
  --primary-soft: #e2f3eb;
  --sidebar: #191d1f;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.68;
  background:
    radial-gradient(circle at 85% 5%, rgb(22 139 95 / 10%), transparent 28rem),
    #f2f4f3;
}

a {
  color: var(--primary-strong);
}

a:focus-visible {
  outline: 3px solid rgb(40 198 129 / 55%);
  outline-offset: 3px;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(25 29 31 / 96%);
  backdrop-filter: blur(18px);
}

.legal-header__inner,
.legal-main,
.legal-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.legal-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.legal-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

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

.legal-brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.legal-brand__copy strong {
  font-size: 16px;
  letter-spacing: .03em;
}

.legal-brand__copy small {
  margin-top: 5px;
  color: #74d7ad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .25em;
}

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

.legal-nav a {
  padding: 8px 10px;
  color: #b7c2bd;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: #fff;
  background: rgb(53 202 135 / 14%);
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 42px;
  padding: 70px 0 90px;
}

.legal-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-main h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.05em;
}

.legal-lead {
  max-width: 740px;
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 38px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  border: 1px solid rgb(22 139 95 / 14%);
  border-radius: 999px;
}

.legal-updated::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

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

.legal-section ul,
.legal-section ol {
  padding-left: 23px;
}

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

.legal-card {
  position: sticky;
  top: 104px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 16px 50px rgb(20 34 29 / 8%);
}

.legal-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.legal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(145deg, #1bad70, #10885a);
  border: 1px solid #138b5b;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgb(15 145 91 / 18%);
}

.legal-footer {
  color: #a8b5af;
  background: var(--sidebar);
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
  font-size: 12px;
}

.legal-footer a {
  color: #c5d1cb;
}

@media (max-width: 900px) {
  .legal-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 11px 0 10px;
  }

  .legal-nav {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .legal-main {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .legal-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .legal-header__inner,
  .legal-main,
  .legal-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .legal-main {
    gap: 24px;
    padding-bottom: 58px;
  }

  .legal-nav {
    gap: 2px;
    overflow-x: visible;
  }

  .legal-nav a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .legal-main h1 {
    font-size: 40px;
  }

  .legal-lead {
    font-size: 16px;
  }

  .legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}

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

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

  .legal-header,
  .legal-card,
  .legal-footer {
    display: none;
  }

  .legal-main {
    display: block;
    width: 100%;
    padding: 0;
  }
}
