:root {
  --deep: #063D36;
  --green: #14B87A;
  --greenHover: #0D9F69;
  --mid: #087D64;
  --mint: #E4F6EE;
  --mint2: #F1F9F5;
  --bg: #F8FAF6;
  --ink: #17201F;
  --txt: #56635F;
  --muted: #76847E;
  --line: #E2E9E5;
  --shadow: 0 26px 70px rgba(14, 47, 37, 0.10);
  --r: 18px;

  --brand: var(--green);
  --brand-dark: var(--greenHover);
  --brand-bg: var(--mint2);
  --brand-bd: #BFEAD1;
  --text: var(--ink);
  --text2: var(--txt);
  --text3: var(--muted);
  --card-bg: #ffffff;
  --border: var(--line);
  --border3: #CADBD1;
  --bg2: #F3F7F4;
  --heading-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font: 15px/1.63 var(--sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: #BFE8D5; color: var(--deep); }
:focus-visible { outline: 3px solid #14B87A; outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 48px)); margin: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: -0.06em;
  font-size: 26px;
  line-height: 1;
}
.brand img { height: 36px; width: 36px; object-fit: contain; }
.brand b { color: var(--deep); }
.brand b span { color: var(--green); }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e9efea;
}
.nav {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 13px;
  font-weight: 620;
  color: #4C5F57;
}
.navlinks > a:hover,
.footer a:hover { color: var(--mid); }
.nav-actions { display: flex; align-items: center; gap: 11px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 46px;
  padding: 0 19px;
  white-space: nowrap;
  background: white;
  color: var(--ink);
  font-weight: 750;
  font-size: 13px;
  transition: background 0.17s ease, transform 0.17s ease, border-color 0.17s ease, box-shadow 0.17s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 50, 38, 0.07);
}
.button-primary { color: #fff; background: var(--green); border-color: var(--green); }
.button-primary:hover {
  background: var(--greenHover);
  border-color: var(--greenHover);
  box-shadow: 0 10px 22px rgba(20, 184, 122, 0.20);
}
.button.sm { min-height: 39px; padding: 0 15px; }
.button svg { height: 17px; width: 17px; flex: none; }
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  user-select: none;
  -webkit-user-select: none;
}
.button .material-symbols-outlined { font-size: 18px; flex: none; }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.menu-button svg { width: 22px; height: 22px; }

.footer {
  background: #07271F;
  color: #A5BEB0;
  padding: 46px 0 28px;
}
.footer .brand b { color: white; }
.footer .brand b span { color: #32D99B; }
.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: start;
}
.footer-sub {
  font-size: 12px;
  margin-top: 12px;
  max-width: 390px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-bottom {
  margin-top: 42px;
  border-top: 1px solid #234339;
  padding-top: 22px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Legal pages */
.legal-page { background: #ffffff; min-height: 100vh; }
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal-wrap h1 {
  font-family: var(--heading-sans);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 8px;
}
.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 36px;
}
.legal-wrap h2 {
  font-family: var(--heading-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.legal-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.legal-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-wrap p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--txt);
  margin: 0;
}
.legal-wrap a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-wrap a:hover { color: var(--greenHover); }
.legal-footer-links {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.legal-footer-links a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-footer-links a:hover { color: var(--greenHover); }
.legal-footer-links .sep { margin: 0 8px; color: var(--muted); }

@media (max-width: 1050px) {
  .navlinks { gap: 17px; }
}

@media (max-width: 860px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 22px 25px;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .navlinks.open { display: flex; }
  .menu-button { display: flex; }
}

@media (max-width: 590px) {
  .container { width: min(100% - 34px, 1180px); }
  .nav { min-height: 68px; }
  .navlinks { top: 68px; }
  .nav-actions .login { display: none; }
  .brand { font-size: 23px; }
  .brand img { width: 31px; height: 31px; }
  .header .button.sm { min-height: 38px; padding: 0 12px; font-size: 11px; }
  .footer-layout,
  .footer-bottom { flex-direction: column; }
  .legal-wrap { padding: 36px 17px 56px; }
  .legal-wrap h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
