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

:root {
  --brand: #2a7a4b;
  --brand-dark: #22633d;
  --brand-soft: #eaf4ee;
  --text: #111827;
  --muted: #7a8799;
  --body: #374151;
  --border: #e4e4e7;
  --bg: #ffffff;
  --surface: #f2f3f5;
  --radius: 12px;
  --max-w: 760px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    'Plus Jakarta Sans',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--brand);
}

/* ── Header ── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--brand);
}

/* ── Main layout ── */
main {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-home {
  padding: 4rem 0 3rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 1.25rem;
  display: block;
  box-shadow: 0 8px 24px rgba(42, 122, 75, 0.15);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ── Contact card ── */
.contact-card {
  background: var(--brand-soft);
  border: 1px solid #d3e8da;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.contact-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-body p {
  color: var(--body);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.125rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: var(--surface);
}

/* ── Links section ── */
.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  background: var(--bg);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.link-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42, 122, 75, 0.12);
}

.link-card-icon {
  font-size: 1.5rem;
}

/* ── Legal document styles ── */
.doc-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.doc-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--body);
}

.doc-info p {
  margin-bottom: 0.25rem;
}
.doc-info p:last-child {
  margin-bottom: 0;
}

.doc-body h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}

.doc-body p {
  color: var(--body);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.doc-body ul {
  padding-left: 1.375rem;
  margin-bottom: 0.75rem;
}

.doc-body ul li {
  color: var(--body);
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}

.doc-body .sub-section {
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--brand-soft);
  margin-bottom: 0.5rem;
}

.doc-body .sub-section p {
  margin-bottom: 0;
}
.doc-body .sub-section ul {
  margin: 0.5rem 0 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
}

footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 5rem 1rem;
}

.not-found h1 {
  font-size: 5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.not-found h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .contact-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .header-inner {
    height: auto;
    padding: 0.75rem 0;
    flex-wrap: wrap;
  }
  header {
    position: static;
  }
}
