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

:root {
  --wg: #18C75A;
  --dg: #11984D;
  --dg2: #0C7038;
  --no: #FF6B1A;
  --ms: #F3FBF6;
  --ink: #10221A;
  --ink70: rgba(16,34,26,.70);
  --ink45: rgba(16,34,26,.45);
  --border: rgba(0,0,0,.08);
  --dark: #071810;
  --dark2: #0C3020;
  --white: #ffffff;
  --font-display: "Be Vietnam Pro", sans-serif;
  --font-body: "Inter", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.container { margin: 0 auto; width: min(100% - 88px, 1160px); }

.nav {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.logo-img { height: 36px; object-fit: contain; width: auto; }
.nav-links {
  align-items: center;
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover { color: var(--dg); }

.btn {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  text-decoration: none;
}

.btn-green { background: var(--dg); color: var(--white); }
.btn-green:hover { background: var(--dg2); }

.lang-switch {
  align-items: center;
  background: rgba(17,152,77,.06);
  border: 1px solid rgba(17,152,77,.12);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.lang-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink45);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 9px;
}

.lang-switch button.is-active {
  background: var(--white);
  box-shadow: 0 4px 10px rgba(17,152,77,.10);
  color: var(--dg);
}

.legal-hero {
  background: linear-gradient(125deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 86px 0 76px;
  position: relative;
}

.legal-hero::before {
  background-image: url("worknow-symbol-stroke.svg");
  background-position: left -90px top 18px, right -120px bottom -40px;
  background-repeat: no-repeat;
  background-size: 520px auto, 580px auto;
  content: "";
  inset: 0;
  opacity: .075;
  pointer-events: none;
  position: absolute;
}

.legal-hero .container { position: relative; z-index: 1; }
.crumb {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--wg); }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  max-width: 820px;
}

.hero-subtitle {
  color: rgba(255,255,255,.72);
  font-size: 17px;
  margin: 22px 0 0;
  max-width: 760px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-pill {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.legal-body {
  background: var(--white);
  overflow: hidden;
  padding: 78px 0 96px;
  position: relative;
}

.legal-body::before {
  background-image: url("worknow-symbol-stroke.svg");
  background-position: left -130px top 80px, right -160px bottom 120px;
  background-repeat: no-repeat;
  background-size: 520px auto, 620px auto;
  content: "";
  inset: 0;
  opacity: .055;
  pointer-events: none;
  position: absolute;
}

.legal-layout {
  display: grid;
  gap: 54px;
  grid-template-columns: 260px minmax(0, 1fr);
  position: relative;
  z-index: 1;
}

.legal-toc {
  align-self: start;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.legal-toc strong {
  color: var(--dg);
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.legal-toc a {
  border-top: 1px solid rgba(0,0,0,.06);
  color: var(--ink70);
  display: block;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 0;
  text-decoration: none;
}

.legal-toc a:hover { color: var(--dg); }
.legal-content {
  background: rgba(255,255,255,.90);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(17,152,77,.07);
  padding: 42px;
}

.legal-note {
  background: #F1FAF4;
  border-left: 4px solid var(--dg);
  border-radius: 10px;
  color: var(--ink70);
  margin-bottom: 30px;
  padding: 16px 18px;
}

.legal-section {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 30px 0;
}

.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section h2 { font-size: 26px; margin-bottom: 14px; }
.legal-section h3 { font-size: 18px; margin: 20px 0 8px; }
.legal-section p { color: var(--ink70); margin: 0 0 12px; }
.legal-section ul { color: var(--ink70); margin: 10px 0 0; padding-left: 20px; }
.legal-section li + li { margin-top: 8px; }

.legal-actions {
  background: var(--ms);
  border-radius: 16px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 22px;
  padding: 22px;
}

.legal-actions p { margin: 0; }

.footer {
  background: var(--dark);
  color: rgba(255,255,255,.68);
  padding: 62px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 2.5fr repeat(3, 1fr);
  padding-bottom: 42px;
}

.footer p {
  color: rgba(255,255,255,.62);
  margin: 16px 0 0;
  max-width: 360px;
}

.footer .logo-img { height: 32px; }
.footer-contact {
  color: rgba(255,255,255,.58);
  display: grid;
  gap: 4px;
  font-size: 14px;
  margin-top: 20px;
}

.footer h4 {
  color: var(--white);
  font-size: 15px;
  margin: 0 0 16px;
}

.footer ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer a {
  color: rgba(255,255,255,.58);
  display: block;
  font-size: 14px;
  text-decoration: none;
}

.footer a:hover,
.footer a.is-active { color: var(--wg); }

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-top: 24px;
}

.footer-bottom p,
.footer-lang {
  color: rgba(255,255,255,.52);
  font-size: 12px;
}

.footer-lang .lang-switch {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

@media (max-width: 900px) {
  .container { width: min(100% - 40px, 1160px); }
  .nav-links { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1160px); }
  .nav-row { height: 66px; }
  .logo-img { height: 32px; }
  .btn-green { display: none; }
  .legal-hero { padding: 58px 0 52px; }
  .legal-body { padding: 54px 0 72px; }
  .legal-content { padding: 26px; }
  .legal-actions { align-items: flex-start; flex-direction: column; }
}
