.xeeni-terms {
  --xt-green: #2f855a;
  --xt-green-dark: #1f5d3d;
  --xt-gold: #d9a400;
  --xt-ink: #17212b;
  --xt-text: #354150;
  --xt-muted: #667385;
  --xt-line: rgba(23, 33, 43, 0.1);
  --xt-soft: #f4faf6;
  background: linear-gradient(180deg, #fffef9 0%, #ffffff 34%, #f4faf6 100%);
  color: var(--xt-text);
  font-family: inherit;
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto 52px;
  overflow: hidden;
}

.xeeni-terms *,
.xeeni-terms *::before,
.xeeni-terms *::after {
  box-sizing: border-box;
}

.xeeni-terms__inner {
  width: 100%;
  margin: 0 auto;
}

.xeeni-terms__hero {
  padding: 92px 42px 52px;
  background:
    linear-gradient(135deg, rgba(31, 93, 61, 0.94), rgba(23, 33, 43, 0.92)),
    url("/images/photo-1672137233327-37b0c1049e771.jpeg") center center / cover no-repeat;
  color: #fff;
}

.xeeni-terms__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
}

.xeeni-terms__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.xeeni-terms h1,
.xeeni-terms h2,
.xeeni-terms h3 {
  color: var(--xt-ink);
  margin-top: 0;
}

.xeeni-terms__hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.15rem, 4.4vw, 4.5rem);
  line-height: 1.02;
}

.xeeni-terms__lead {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.8;
}

.xeeni-terms__updated {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.3;
}

.xeeni-terms__contact-card,
.xeeni-terms__panel,
.xeeni-terms__toc,
.xeeni-terms__cards article {
  border: 1px solid var(--xt-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 33, 43, 0.08);
}

.xeeni-terms__contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--xt-text);
}

.xeeni-terms__contact-card h2 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.xeeni-terms__contact-card p,
.xeeni-terms__contact-block p {
  margin: 0 0 9px;
  line-height: 1.65;
}

.xeeni-terms a {
  color: var(--xt-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.xeeni-terms a:hover {
  color: #111827;
}

.xeeni-terms__section {
  padding: 44px 42px 64px;
}

.xeeni-terms__layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.xeeni-terms__toc {
  position: sticky;
  top: 110px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
}

.xeeni-terms__toc h2 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.xeeni-terms__toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 33, 43, 0.08);
  color: var(--xt-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.xeeni-terms__toc a:hover {
  color: var(--xt-green-dark);
}

.xeeni-terms__content {
  display: grid;
  gap: 24px;
}

.xeeni-terms__panel {
  padding: 34px;
  background: rgba(255, 255, 255, 0.97);
}

.xeeni-terms__panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.15;
}

.xeeni-terms__panel h3 {
  margin-bottom: 8px;
  color: var(--xt-green-dark);
  font-size: 1.08rem;
  line-height: 1.3;
}

.xeeni-terms__panel p,
.xeeni-terms__list li,
.xeeni-terms__table th,
.xeeni-terms__table td {
  color: var(--xt-text);
  font-size: 1rem;
  line-height: 1.78;
}

.xeeni-terms__panel p {
  margin: 0 0 16px;
}

.xeeni-terms__panel p:last-child {
  margin-bottom: 0;
}

.xeeni-terms__notice,
.xeeni-terms__contact-block {
  margin: 18px 0 0;
  padding: 22px;
  border-left: 4px solid var(--xt-green);
  border-radius: 8px;
  background: var(--xt-soft);
}

.xeeni-terms__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.xeeni-terms__cards article {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  box-shadow: none;
}

.xeeni-terms__cards p {
  color: var(--xt-muted);
}

.xeeni-terms__list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.xeeni-terms__list li {
  position: relative;
  padding-left: 28px;
}

.xeeni-terms__list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xt-gold), var(--xt-green));
}

.xeeni-terms__table-wrap {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--xt-line);
  border-radius: 8px;
  background: #fff;
}

.xeeni-terms__table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.xeeni-terms__table th,
.xeeni-terms__table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
  text-align: left;
  vertical-align: top;
}

.xeeni-terms__table th {
  background: var(--xt-soft);
  color: var(--xt-ink);
  font-weight: 800;
}

.xeeni-terms__table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .xeeni-terms {
    width: min(var(--theme-sheet-width-md, 720px), calc(100% - 24px));
  }

  .xeeni-terms__hero {
    padding: 72px 30px 42px;
  }

  .xeeni-terms__section {
    padding: 34px 30px 54px;
  }

  .xeeni-terms__hero-grid,
  .xeeni-terms__layout {
    grid-template-columns: 1fr;
  }

  .xeeni-terms__contact-card {
    max-width: 560px;
  }

  .xeeni-terms__toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .xeeni-terms__toc h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .xeeni-terms {
    width: min(var(--theme-sheet-width-xs, 340px), calc(100% - 16px));
    margin-bottom: 36px;
  }

  .xeeni-terms__hero {
    padding: 54px 18px 32px;
  }

  .xeeni-terms__section {
    padding: 24px 18px 42px;
  }

  .xeeni-terms__panel,
  .xeeni-terms__contact-card,
  .xeeni-terms__toc {
    padding: 22px;
  }

  .xeeni-terms__cards,
  .xeeni-terms__toc {
    grid-template-columns: 1fr;
  }

  .xeeni-terms__table {
    min-width: 620px;
  }
}
