.terms-page {
  background: #f3f3f1;
  color: #111827;
}

.terms-page a {
  text-decoration: none;
}

.terms-hero {
  padding: 34px 0 24px;
}

.terms-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
  padding: 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(177, 201, 0, 0.14), transparent 34%),
    linear-gradient(135deg, #050505 0%, #111827 100%);
  color: #fff;
}

.terms-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.terms-eyebrow,
.terms-section__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  min-height: 32px;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.terms-eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
}

.terms-section__eyebrow {
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #5f6f00;
  background: rgba(177, 201, 0, 0.12);
}

.terms-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 0.96;
  font-weight: 850;
}

.terms-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  line-height: 1.75;
}

.terms-hero__actions,
.terms-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.terms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.terms-btn--accent {
  background: #b7cc1b;
  border-color: #b7cc1b;
  color: #111827;
}

.terms-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.terms-btn--light {
  background: #fff;
  border-color: #fff;
  color: #111827;
}

.terms-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 780px;
}

.terms-hero__meta div {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.terms-hero__meta span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.3;
}

.terms-hero__meta strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.3;
}

.terms-hero__panel {
  display: flex;
  align-items: stretch;
}

.terms-hero__panel-card,
.terms-summary-card,
.terms-card,
.terms-toc__inner {
  border: 1px solid #e2e2db;
  border-radius: 28px;
  background: #fbfbfa;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.terms-hero__panel-card {
  width: 100%;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.terms-hero__panel-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
}

.terms-hero__bullet-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

.terms-section {
  padding: 34px 0;
}

.terms-section--tight {
  padding-top: 8px;
  padding-bottom: 16px;
}

.terms-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.terms-summary-card {
  padding: 24px;
}

.terms-summary-card h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.terms-summary-card p {
  margin: 0;
  color: #5b6472;
  line-height: 1.65;
}

.terms-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.terms-toc {
  position: sticky;
  top: 96px;
}

.terms-toc__inner {
  padding: 18px;
}

.terms-toc__nav {
  display: grid;
  gap: 8px;
}

.terms-toc__link {
  padding: 10px 12px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  line-height: 1.45;
}

.terms-toc__link:hover {
  background: #f2f5ea;
  color: #5f6f00;
}

.terms-document {
  display: grid;
  gap: 18px;
}

.terms-card {
  padding: 26px;
}

.terms-card--notice {
  background: linear-gradient(180deg, #fafbf6 0%, #ffffff 100%);
  border-color: #dfe6cc;
}

.terms-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  color: #111827;
}

.terms-card p {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.78;
}

.terms-card p:last-child {
  margin-bottom: 0;
}

.terms-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.terms-company-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #f7f8f4;
  border: 1px solid #e5e7de;
}

.terms-company-grid span {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.terms-company-grid strong {
  display: block;
  color: #111827;
  line-height: 1.45;
}

.terms-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(177, 201, 0, 0.16), transparent 36%),
    linear-gradient(135deg, #0b0c10 0%, #121a2b 100%);
  color: #fff;
}

.terms-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
}

.terms-cta p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

@media (max-width: 1199.98px) {
  .terms-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-layout,
  .terms-hero__grid,
  .terms-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-toc {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .terms-hero__grid,
  .terms-card,
  .terms-cta {
    padding: 22px;
  }

  .terms-hero__meta,
  .terms-summary-grid,
  .terms-company-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
}
