:root {
  color-scheme: light;
  --green: #4bc500;
  --green-dark: #2e8200;
  --green-soft: #effae9;
  --ink: #171a18;
  --muted: #626b65;
  --line: #dfe4e0;
  --surface: #ffffff;
  --canvas: #f4f6f4;
  --shadow: 0 24px 70px rgba(25, 40, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #205e00;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 228, 224, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  display: flex;
  width: min(72rem, calc(100% - 2rem));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.header-inner {
  min-height: 4.7rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  margin-top: 0.24rem;
  color: var(--green-dark);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.header-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"],
.footer-links a:hover {
  color: var(--ink);
}

.back-link {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink) !important;
  text-decoration: none;
}

.legal-page {
  width: min(62rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 6rem) 0;
}

.legal-hero {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.1;
}

h1 {
  max-width: 50rem;
  margin: 1rem 0;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  letter-spacing: -0.055em;
}

.legal-hero > p {
  max-width: 47rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.legal-meta span {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.legal-document {
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-document section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.025em;
}

.legal-document h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1rem;
}

.legal-document p,
.legal-document li {
  color: #424944;
  font-size: 0.97rem;
  line-height: 1.75;
}

.legal-document p {
  margin: 0.7rem 0 0;
}

.legal-document ul {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.legal-document li + li {
  margin-top: 0.45rem;
}

.legal-callout,
.contact-card,
.english-summary {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
}

.legal-callout {
  border: 1px solid #cde8bd;
  background: var(--green-soft);
  color: #28481a;
  line-height: 1.65;
}

.contact-card {
  border: 1px solid var(--line);
  background: #f8faf8;
}

.contact-card p {
  margin-top: 0;
}

.english-summary {
  border: 1px solid #d8ded9;
  background: #f6f8f6;
}

.english-summary h2 {
  font-size: 1.15rem;
}

.english-summary p,
.english-summary li {
  font-size: 0.9rem;
}

.language-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 6rem;
  gap: 1rem;
  color: #737c76;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand small {
    display: none;
  }

  .back-link {
    padding: 0 0.75rem;
    font-size: 0.76rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 0;
  }

  .footer-links {
    gap: 0.75rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-page {
    width: 100%;
    padding: 0;
  }

  .legal-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
