:root {
  --bg: #0d0d0d;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.08);
  --gold: #d8a43a;
  --gold-deep: #b77b22;
  --text: #121212;
  --text-soft: rgba(18, 18, 18, 0.7);
  --text-light: rgba(255, 247, 229, 0.82);
  --border: rgba(216, 164, 58, 0.28);
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(216, 164, 58, 0.2), transparent 30%),
    linear-gradient(180deg, #1f1f1f 0%, #090909 100%);
  font-family: "Manrope", sans-serif;
  color: var(--text-light);
}

body {
  padding: 24px 16px 48px;
}

a {
  color: inherit;
}

.terms-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.terms-hero,
.terms-card,
.terms-footer {
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

.terms-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top center, rgba(216, 164, 58, 0.22), transparent 35%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.terms-logo {
  width: min(100%, 260px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.terms-eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f1cf7c;
}

.terms-hero h1,
.terms-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.terms-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.08;
  max-width: 16ch;
}

.terms-intro {
  margin: 14px 0 0;
  max-width: 60ch;
  line-height: 1.65;
  color: var(--text-light);
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.terms-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 164, 58, 0.2);
}

.terms-card,
.terms-footer {
  background: var(--panel);
  color: var(--text);
  padding: 22px;
}

.terms-card h2 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.terms-card p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--text-soft);
}

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

.terms-card--summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 242, 223, 0.96) 100%);
}

.terms-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  line-height: 1.65;
  color: var(--text-soft);
}

.terms-footer p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  body {
    padding: 16px 12px 32px;
  }

  .terms-hero,
  .terms-card,
  .terms-footer {
    border-radius: 22px;
  }

  .terms-hero,
  .terms-card,
  .terms-footer {
    padding: 18px;
  }

  .terms-hero h1 {
    max-width: none;
    font-size: 1.7rem;
  }
}
