/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

/* ── Tokens ── */
:root {
  --green-darkest: #052818;
  --green-dark:    #0a5a3d;
  --green-mid:     #0c7a54;
  --green-accent:  #5ccb95;
  --green-light:   #a8e6c4;

  --bg-pastel:     #dce9e1;
  --bg-light:      #ffffff;

  --text:        #1a1a1a;
  --text-muted:  #556661;
  --border:      #c9dbd1;

  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg-pastel); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Header ── */
.um-header {
  background: var(--green-darkest);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.um-header-inner {
  display: flex;
  align-items: center;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

.um-brand {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.um-brand svg { width: 26px; height: 26px; }

.um-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
  margin-left: 0.75rem;
  letter-spacing: -0.01em;
}

a.um-brand {
  cursor: pointer;
  transition: opacity 0.2s;
}
a.um-brand:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #ffffff;
}

.um-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.um-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.um-nav a:hover { color: #ffffff; text-decoration: none; }

/* ── Legal page layout ── */
.legal-hero {
  background: linear-gradient(180deg, #0c7a54 0%, #0a5a3d 100%);
  padding: 3rem 0;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-hero .legal-date {
  color: var(--green-light);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-section {
  padding: 3rem 0 4rem;
}

.legal-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 3rem 3.5rem;
  box-shadow: 0 10px 40px rgba(5, 40, 24, 0.06), 0 2px 6px rgba(5, 40, 24, 0.04);
  max-width: 1080px;
  margin: 0 auto;
}

.legal-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green-darkest);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 1.5rem 0 0.5rem;
}

.legal-card p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-card ul, .legal-card ol {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

.legal-toc {
  background: #f4f8f5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.legal-toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9375rem;
}

.legal-toc li {
  margin-bottom: 0.35rem;
}

.legal-toc a {
  color: var(--text);
}

.legal-toc a:hover {
  color: var(--green-mid);
}

.legal-placeholder {
  background: #fff8e1;
  border-left: 3px solid #e4a100;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  display: inline-block;
  margin: 0.25rem 0;
}

/* ── Footer ── */
.um-footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.um-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.um-footer-brand {
  display: flex;
  align-items: center;
  color: #ffffff;
}

a.um-footer-brand {
  transition: opacity 0.2s;
}

a.um-footer-brand:hover {
  opacity: 0.85;
  color: #ffffff;
  text-decoration: none;
}

.um-footer-brand svg { width: 22px; height: 22px; }

.um-footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-left: 0.6rem;
  letter-spacing: -0.01em;
}

.um-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.um-footer-links a {
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.um-footer-links a:hover { color: #ffffff; text-decoration: none; }

.um-footer-copy {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-card { padding: 2rem 1.5rem; }
  .legal-toc ol { columns: 1; }
  .um-nav { gap: var(--space-sm); }
  .um-nav a { font-size: 0.8125rem; }
  .um-brand-name { display: none; }
}

@media (max-width: 640px) {
  .um-footer-inner { justify-content: center; text-align: center; flex-direction: column; }
  .um-footer-links { justify-content: center; }
}
