:root {
  color-scheme: dark;
  --terms-bg: #080910;
  --terms-panel: rgba(18, 19, 31, 0.84);
  --terms-border: rgba(255, 255, 255, 0.09);
  --terms-text: #f5f4fb;
  --terms-muted: #a7a5b8;
  --terms-accent: #a78bfa;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--terms-text);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(116, 72, 218, 0.2), transparent 36rem),
    radial-gradient(ellipse at 92% 18%, rgba(68, 61, 153, 0.14), transparent 32rem),
    var(--terms-bg);
  font-family: "DM Sans", sans-serif;
}

.topbar.site-header {
  width: min(1160px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header .header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terms-text);
  font: 700 1.24rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.site-header .brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188, 160, 255, 0.35);
  border-radius: 11px;
  background: linear-gradient(145deg, #9d78ff, #6944d6);
  box-shadow: 0 7px 22px rgba(123, 80, 225, 0.28);
  color: #fff;
  font-size: 1.05rem;
}

.brand-period {
  color: var(--terms-accent);
}

.terms-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-header-button {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--terms-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #eeecf6;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.terms-header-button:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(147, 112, 235, 0.14);
}

.page-shell {
  width: min(920px, calc(100% - 48px));
  margin: 30px auto 80px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--terms-text);
}

.page-header {
  margin-bottom: 24px;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--terms-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(145, 105, 242, 0.23), transparent 16rem),
    linear-gradient(135deg, rgba(28, 25, 45, 0.97), rgba(15, 16, 27, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.page-header h1,
.page-header h2 {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

.page-header p,
.page-header .subtitle {
  color: var(--terms-muted);
}

.section {
  margin: 14px 0;
  padding: clamp(20px, 3.5vw, 30px);
  border: 1px solid var(--terms-border);
  border-radius: 19px;
  background: var(--terms-panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  color: #d7d5e1;
  backdrop-filter: blur(14px);
}

.section h2,
.section h3 {
  color: #f7f5ff;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
}

.section p,
.section li {
  color: #c3c0d0;
  line-height: 1.75;
}

.section a {
  color: #c4afff;
  text-decoration-color: rgba(196, 175, 255, 0.45);
  text-underline-offset: 3px;
}

.section a:hover {
  color: #e1d7ff;
}

@media (max-width: 600px) {
  .topbar.site-header {
    width: calc(100% - 32px);
    min-height: 68px;
  }

  .site-header .header-logo {
    gap: 7px;
    font-size: 1.08rem;
  }

  .site-header .brand-mark {
    width: 31px;
    height: 31px;
  }

  .terms-header-actions {
    gap: 7px;
  }

  .terms-header-button {
    min-height: 35px;
    padding: 0 10px;
    gap: 5px;
    font-size: 0.8rem;
  }

  .page-shell {
    width: calc(100% - 32px);
    margin: 20px auto 56px;
  }
}
