@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

  :root {
    --green-deep:   #1e3d18;
    --green-mid:    #2f5e24;
    --green-main:   #629c51;
    --green-light:  #a8d08a;
    --green-pale:   #eef6e9;
    --warm-gray:    #6b6b60;
    --text-dark:    #1c1c18;
    --shadow-card:  0 4px 24px rgba(30,61,24,.10);
    --radius:       16px;
    --transition:   .25s cubic-bezier(.4,0,.2,1);
  }

  html, body { background: #f7f9f5; }

  /* ── Hero banner ── */
  .terms-hero {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    margin-top: -82px;
  }
  .terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .terms-hero::after {
    content: '\f15c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12rem;
    color: rgba(255,255,255,.05);
    pointer-events: none;
  }
  .terms-hero__inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
  }
  .terms-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px;
    padding: .3rem .95rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.1rem;
  }
  .terms-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 .75rem;
  }
  .terms-hero__meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
  }
  .terms-hero__meta span {
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: .35rem;
  }
  .terms-hero__meta span i { color: var(--green-light); font-size: .7rem; }

  /* ── Page layout ── */
  .terms-page {
    max-width: 1100px;
    margin: 2.5rem auto 5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2rem;
    align-items: flex-start;
  }
  @media (max-width: 860px) {
    .terms-page { grid-template-columns: 1fr; }
    .terms-toc  { display: none; }
  }

  /* ── Table of Contents ── */
  .terms-toc {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--green-main);
    padding: 1.25rem;
  }
  .terms-toc__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: .92rem;
    font-weight: 700;
    color: var(--green-deep);
    margin: 0 0 .85rem;
    display: flex;
    align-items: center;
    gap: .45rem;
  }
  .terms-toc__heading i { color: var(--green-main); font-size: .82rem; }
  .terms-toc__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: .05rem;
    counter-reset: toc-counter;
  }
  .terms-toc__list li { counter-increment: toc-counter; }
  .terms-toc__list a {
    display: flex;
    gap: .5rem;
    padding: .35rem .5rem;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: .77rem;
    color: var(--warm-gray);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    line-height: 1.4;
  }
  .terms-toc__list a::before {
    content: counter(toc-counter, decimal-leading-zero);
    color: var(--green-main);
    font-weight: 700;
    font-size: .7rem;
    flex-shrink: 0;
    padding-top: 1px;
    min-width: 1.5rem;
  }
  .terms-toc__list a:hover {
    background: var(--green-pale);
    color: var(--green-mid);
    text-decoration: none;
  }

  /* ── Notice banner ── */
  .terms-notice {
    background: var(--green-pale);
    border-left: 3px solid var(--green-main);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    color: var(--warm-gray);
    line-height: 1.7;
  }
  .terms-notice strong { color: var(--green-deep); }
  .terms-notice a { color: var(--green-main); text-decoration: underline; }
  .terms-notice a:hover { color: var(--green-deep); }

  /* ── Main content card ── */
  .terms-content {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2.75rem;
  }
  @media (max-width: 600px) { .terms-content { padding: 1.5rem 1.25rem; } }

  /* Individual section */
  .terms-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--green-pale);
  }
  .terms-section:first-child { padding-top: 0; }
  .terms-section:last-child { border-bottom: none; padding-bottom: 0; }

  .terms-section__head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .9rem;
  }
  .terms-section__num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: var(--green-main);
    border: 1.5px solid var(--green-light);
  }
  .terms-section__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--green-deep);
    margin: 0;
  }
  .terms-section__body {
    font-family: 'DM Sans', sans-serif;
    font-size: .91rem;
    color: var(--text-dark);
    line-height: 1.82;
    margin: 0;
    padding-left: calc(38px + .85rem);
  }
  .terms-section__body p { margin-bottom: .75rem; }
  .terms-section__body p:last-child { margin-bottom: 0; }
  .terms-section__body a { color: var(--green-main); text-decoration: underline; }
  .terms-section__body a:hover { color: var(--green-deep); }

  /* Sub-headings within a section */
  .terms-section__body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin: 1.1rem 0 .4rem;
  }

  /* Bullet lists */
  .terms-section__body ul {
    list-style: none;
    padding: 0;
    margin: .4rem 0 .75rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
  }
  .terms-section__body ul li {
    padding-left: 1.25rem;
    position: relative;
    font-size: .9rem;
    color: #3a3a30;
    line-height: 1.7;
  }
  .terms-section__body ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--green-main);
    font-size: 1.1rem;
    line-height: 1.55;
    font-weight: 700;
  }

  /* Caps warning blocks */
  .caps-block {
    background: #f4f8f2;
    border: 1px solid var(--green-light);
    border-left: 3px solid var(--green-main);
    border-radius: 0 6px 6px 0;
    padding: .85rem 1rem;
    margin: .75rem 0;
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.65;
  }
