/* EasyEcom shared stylesheet
   Used by every page: index, services, about, contact, privacy, terms, 404.
   Mobile-first. Breakpoint: 880px.
   Design system v2: see design-system.md for the tokens and rules. */

/* Fonts, served from our own site so no visitor data goes to a third party.
   Both are under the SIL Open Font License (see assets/fonts/OFL-*.txt). */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --green: #10483F;
  --green-hover: #16594D;
  --green-deep: #0B2F29;
  --lime: #D2DC6E;
  --lime-hover: #DCE584;
  --lime-soft: #EEF3D2;

  /* Neutrals */
  --bg: #FFFFFF;
  --surface: #F5F7F4;
  --line: #E3E8E5;
  --ink: #14201E;
  --text: #3E4B48;
  --muted: #5E6B68;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  /* Type */
  --font-head: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Shape and layout */
  --radius: 16px;
  --radius-lg: 28px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  color: var(--ink);
}
.display { font-size: clamp(3rem, 9vw, 6rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-alt { background: var(--surface); }
@media (min-width: 880px) {
  section { padding: 112px 0; }
}

/* Eyebrow: dot plus short uppercase label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--green);
}

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 12px; }
/* Split intro: heading left, short paragraph right */
@media (min-width: 880px) {
  .section-head.split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 56px;
  }
  .section-head.split p { margin-top: 0; max-width: 460px; }
  .section-head.split p + p { margin-top: 14px; }
  /* For a longer text column: align to the top, not the bottom */
  .section-head.split.top { align-items: start; }
  .section-head.split.top p { max-width: 520px; }
}
.small { font-size: 0.92rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--green-hover); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 999px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-accent { background: var(--lime); color: var(--green); }
.btn-accent:hover { background: var(--lime-hover); }

.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: transparent; color: var(--green-hover); }

.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.btn-arrow svg { width: 16px; height: 16px; }
.btn-accent .btn-arrow { background: rgba(16, 72, 63, 0.12); }

.text-link { color: var(--green); font-weight: 500; }
.text-link:hover { color: var(--green-hover); }

/* Dark green areas: panels and the closing CTA band */
.on-dark,
.cta-band .container { background: var(--green); color: var(--on-dark-muted); }
.on-dark h2, .on-dark h3,
.cta-band h2, .cta-band h3 { color: var(--on-dark); }
.on-dark .eyebrow,
.cta-band .eyebrow { color: var(--lime); }
.on-dark .eyebrow::before,
.cta-band .eyebrow::before { box-shadow: none; }
.on-dark .btn-ghost,
.cta-band .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover,
.cta-band .btn-ghost:hover { color: var(--lime); }
.on-dark a:focus-visible,
.cta-band a:focus-visible { outline-color: var(--lime); }

/* Header: logo left, links centred, CTA right */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
/* Logo: assets/logo.svg, Outfit 500 outlines, same size as the old 24px text logo */
.logo { display: inline-flex; text-decoration: none; }
.logo img { display: block; width: 106px; height: 22px; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-label span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.site-nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 12px 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-toggle:checked ~ .site-nav { display: flex; }
.nav-links { display: flex; flex-direction: column; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 12px 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--green); }
.site-nav a.btn { justify-content: center; margin-top: 12px; }

@media (min-width: 880px) {
  .header-inner { height: 76px; }
  .nav-toggle-label { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
  }
  /* Links centred on the page, independent of logo and CTA widths */
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
  }
  .nav-links a { position: relative; padding: 8px 14px; font-size: 1rem; }
  .nav-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 1px var(--green);
  }
  .site-nav a.btn { margin-top: 0; }
}

/* Hero */
.hero {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}
.hero-grid { display: grid; gap: 40px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 20px 0 12px;
  max-width: 560px;
}
.tagline { color: var(--green); font-weight: 600; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.trust { margin-top: 28px; font-size: 0.92rem; color: var(--muted); }

@media (min-width: 880px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
}

/* Home hero: display heading, inline pill and photo, wide photo with badge */
.hero-home { padding: 40px 0 0; }
.hero-home .display { font-size: clamp(2.6rem, 7.5vw, 5.25rem); }
.hero-home .display .d-line { display: block; text-wrap: balance; }
.d-pill {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--green);
  background: var(--lime);
  border-radius: 999px;
  padding: 10px 18px;
  margin-left: 0.15em;
}
.d-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.15em;
  border-radius: 50%;
  overflow: hidden;
}
.d-photo span { display: none; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0; color: var(--muted); }
@media (min-width: 880px) { .d-photo span { display: inline; } }
.d-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { display: grid; gap: 28px; margin-top: 28px; }
.hero-meta .lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-meta .tagline { margin: 12px 0 0; }
.hero-media { position: relative; margin-top: 48px; }
.img-slot.wide { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.spin-badge { display: none; }

@media (min-width: 880px) {
  .hero-home { padding-top: 72px; }
  .hero-home .display .d-indent { padding-left: 1.2em; }
  .hero-meta { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; margin-top: 40px; }
  .hero-meta .trust { margin-top: 16px; max-width: 420px; }
  .hero-media { margin-top: 96px; }
  .img-slot.wide, .hero-img { aspect-ratio: 7 / 3; }
  .spin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -64px;
    right: 56px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green);
    box-shadow: 0 0 0 8px #fff;
  }
  .spin-badge svg.ring {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    animation: spin 18s linear infinite;
  }
  .spin-badge text {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    fill: var(--green);
  }
  .spin-badge .core {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .spin-badge .core svg { width: 18px; height: 18px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spin-badge svg.ring { animation: none; }
}

/* Platform strip */
.platforms { padding: 32px 0; border-bottom: 1px solid var(--line); }
.platforms .container { display: grid; gap: 14px; }
.platforms .eyebrow { margin-bottom: 0; }
.platform-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.platform-list li {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 880px) {
  .platforms { padding: 40px 0; }
  .platforms .container { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
  .platform-list { justify-content: center; gap: 56px; }
  .platform-list li { font-size: 2rem; }
  .platforms .small { max-width: 240px; }
}

/* Image placeholders: remove the dashed style once real photos are in */
.img-slot {
  aspect-ratio: 7 / 6;
  border: 2px dashed #C5CFCB;
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.img-slot strong { display: block; font-size: 1rem; margin-bottom: 8px; color: var(--ink); }

/* Cards */
.cards { display: grid; gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--green);
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p + p { margin-top: 12px; }
@media (min-width: 880px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Steps */
.steps { display: grid; gap: 28px; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: -24px;
  width: 2px;
  background: var(--line);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 64px; }
  .step:not(:last-child)::after {
    left: 56px;
    right: -20px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* Honesty note */
.note {
  max-width: 720px;
  margin: 0 auto;
  border-left: 4px solid var(--lime);
  padding: 8px 0 8px 24px;
}
.note h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 14px; }

/* Green panel set inside the page margins */
.panel { border-radius: var(--radius-lg); padding: 40px 24px; }
.panel-grid { display: grid; gap: 32px; }
.panel p { max-width: 520px; margin: 16px 0 28px; }
.checks { list-style: none; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.on-dark .checks li { color: #fff; }
.checks li::before {
  content: '\2713';
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
@media (min-width: 880px) {
  .panel { padding: 72px 64px; }
  .panel-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* Plain statement, centred, with a short lime bar */
.statement { max-width: 720px; margin: 0 auto; text-align: center; }
.statement::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: 0 auto 28px;
  border-radius: 2px;
  background: var(--lime);
}
.statement h2 { margin-bottom: 16px; }
.statement p { font-size: 1.15rem; }
.statement.left { margin: 0; max-width: 820px; text-align: left; }
.statement.left::before { margin-left: 0; }
.statement-line {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.statement p.statement-line { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* Lists inside a green panel */
.on-dark .fit-list li { color: #fff; }
.on-dark .fit-list.no li::before { background: rgba(255, 255, 255, 0.14); color: #fff; }
.panel .btn { margin-top: 4px; }
.panel h2 + .btn { margin-top: 28px; }

/* Fit section */
.fit-grid { display: grid; gap: 20px; }
.fit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.fit-card.no h3 { color: #4A5653; }
.fit-list { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.fit-list li { display: flex; gap: 12px; align-items: flex-start; }
.fit-list li::before {
  content: '\2713';
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.fit-card.no .fit-list li::before,
.fit-list.no li::before { content: '\2715'; background: #F1F3F3; color: #7A8784; }
@media (min-width: 880px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}

/* Plans */
.plans-grid { display: grid; gap: 20px; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--green);
  box-shadow: 0 12px 32px rgba(11, 47, 41, 0.08);
}
.plan .from { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.price-from { display: block; font-size: 0.9rem; font-weight: 600; color: var(--green); margin-bottom: 2px; }
.price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.price small { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.plan ul { list-style: none; margin: 20px 0 28px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 20px; }
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--green);
}
.plan h3 { margin-top: 24px; }
.plan h3:first-child { margin-top: 0; }
.plan h3 + ul { margin-top: 14px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
/* Featured plan as a green panel */
.plan.on-dark { background: var(--green); border-color: var(--green); }
.plan.on-dark .price,
.plan.on-dark li { color: #fff; }
.plan.on-dark .price-from { color: var(--lime); }
.plan.on-dark .from,
.plan.on-dark .price small { color: var(--on-dark-muted); }
.plan.on-dark li::before { box-shadow: none; }
.plans-foot { margin-top: 32px; display: grid; gap: 10px; text-align: center; }
.plans-foot .strong { font-weight: 600; color: var(--ink); }
@media (min-width: 880px) {
  .plans-grid { grid-template-columns: 1fr 1fr; }
}

/* Closing CTA: a rounded green panel inside the page margins.
   Colours set in the dark green block above. */
.cta-band { text-align: center; padding: 0 0 72px; }
.cta-band .container {
  width: calc(100% - 32px);
  max-width: calc(var(--max) - 40px);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
}
.cta-band h2 { max-width: 780px; margin: 0 auto 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn:not(.btn-ghost) { background: var(--lime); color: var(--green); }
.cta-band .btn:not(.btn-ghost):hover { background: var(--lime-hover); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-band .small { color: var(--on-dark-muted); margin-top: 20px; }
.cta-contact { margin-top: 22px; }
.cta-band .cta-contact p { margin: 0 auto 8px; }
.cta-contact a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cta-contact a:hover { color: var(--lime); }
@media (min-width: 880px) {
  .cta-band { padding-bottom: 112px; }
  .cta-band .container { padding: 88px 64px; }
}

/* Legal pages (privacy, terms): one readable column */
.legal-body { padding-top: 0; }
.legal { max-width: 720px; }
.legal h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal p + p,
.legal p + ul,
.legal ul + p,
.legal .legal-table + p { margin-top: 14px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal li::marker { color: var(--green); }
.legal strong { color: var(--ink); }
.legal .updated { margin-top: 16px; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 56px;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 12px; }
.toc ol { padding-left: 22px; display: grid; gap: 6px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }
@media (min-width: 880px) {
  .toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

.legal-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.95rem; }
.legal-table th,
.legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 600; color: var(--ink); background: var(--surface); }
/* Phones: each row becomes a small card */
@media (max-width: 879px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 4px 0; margin-bottom: 12px; }
  .legal-table td { display: block; border: 0; padding: 8px 16px; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 2px;
  }
}

/* 404 page: centred, with four link cards */
.notfound { text-align: center; padding: 56px 0 88px; }
.big-404 {
  font-size: clamp(6rem, 24vw, 12rem);
  color: var(--line);
  line-height: 0.9;
  margin-bottom: 8px;
}
.notfound .lead { max-width: 520px; margin: 16px auto 40px; color: var(--muted); font-size: 1.15rem; }
.link-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 32px;
  text-align: left;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.card-link:hover { border-color: var(--green); }
.card-link strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.card-link span { font-size: 0.92rem; color: var(--muted); }
.card-link .card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: auto;
  padding-top: 0;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--green);
}
.card-link .card-arrow svg { width: 16px; height: 16px; }
.card-link span + .card-arrow { margin-top: 12px; }
@media (min-width: 880px) {
  .notfound { padding: 80px 0 112px; }
  .link-cards { grid-template-columns: repeat(4, 1fr); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  font-size: 0.95rem;
  color: var(--text);
}
.footer-grid { display: grid; gap: 32px; }
.site-footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
