@font-face {
  font-family: Golos;
  src: url('/assets/golos-text.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Golos;
  src: url('/assets/golos-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #18382d;
  --green: #176a51;
  --deep: #133e32;
  --lime: #d5f47d;
  --surface: #f4f7f3;
  --line: #dce5dd;
  --muted: #66766b;
  --white: #fff;
  --font: Golos, 'Arial', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--deep);
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e9eee9;
  backdrop-filter: blur(12px);
}

.legal-header-inner {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.9px;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--lime);
  border-radius: 11px;
}

.brand-mark .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  transform: rotate(-14deg);
}

.brand-period {
  color: #80a33b;
}

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

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.legal-nav-link:hover {
  color: var(--green);
  text-decoration: none;
  background: var(--surface);
}

.legal-nav-link.is-active {
  color: var(--deep);
  background: #eef6df;
  border-color: #d7e3d0;
}

.legal-back {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--green);
  text-decoration: none;
}

.legal-main {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 14px;
}

.legal-main h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 42rem;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-intro {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 42rem;
}

.legal-main section {
  margin-bottom: 18px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.legal-main h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--deep);
}

.legal-main p,
.legal-main li {
  font-size: 0.9375rem;
  color: var(--muted);
}

.legal-main p + p {
  margin-top: 10px;
}

.legal-main ul {
  margin: 12px 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-footer {
  border-top: 1px solid #e5ebe1;
  padding: 22px 0 28px;
}

.legal-footer-inner {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

.legal-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner {
    width: calc(100% - 40px);
  }

  .legal-nav {
    order: 3;
    width: 100%;
  }

  .legal-main {
    padding-top: 28px;
  }

  .legal-main section {
    padding: 20px 18px;
    border-radius: 14px;
  }
}
