.rules-page {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 0 34px;
}

.rules-shell {
  border: 1px solid rgba(255, 178, 61, 0.28);
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.42);
  overflow: hidden;
}

.rules-header {
  padding: 24px 26px 20px;
  border-bottom: 1px solid rgba(255, 178, 61, 0.16);
}

.rules-header h1 {
  margin: 0;
  color: #ffd16b;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
}

.rules-header p {
  margin: 10px 0 0;
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.45;
  max-width: 860px;
}

.rules-header .rules-updated {
  color: #f1c45d;
  font-size: 14px;
  font-weight: 700;
}

.rules-grid {
  display: block;
}

.rules-section {
  padding: 22px 26px;
  border-top: 1px solid rgba(255, 178, 61, 0.12);
}

.rules-section:first-child {
  border-top: 0;
}

.rules-section h2 {
  margin: 0 0 12px;
  color: #f1c45d;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 760;
}

.rules-section p,
.rules-section ol,
.rules-section ul {
  margin: 0;
  color: #dedede;
  font-size: 15px;
  line-height: 1.48;
}

.rules-section ol,
.rules-section ul {
  padding-left: 22px;
}

.rules-section p + ol,
.rules-section p + ul,
.rules-section ul + ol {
  margin-top: 10px;
}

.rules-section li + li {
  margin-top: 8px;
}

.rules-section a {
  color: #ffd16b;
  text-decoration: none;
}

.rules-section a:hover {
  color: #ffb43a;
  text-decoration: underline;
}

body.light-theme .rules-shell {
  background: #fff;
  border-color: #d7d7d7;
}

body.light-theme .rules-header {
  border-bottom-color: #e4e4e4;
}

body.light-theme .rules-header h1,
body.light-theme .rules-section h2 {
  color: #111;
}

body.light-theme .rules-header p {
  color: #666;
}

body.light-theme .rules-header p.rules-updated {
  color: #111 !important;
}

body.light-theme .rules-section {
  border-top-color: #e9e9e9;
}

body.light-theme .rules-section p,
body.light-theme .rules-section ol,
body.light-theme .rules-section ul {
  color: #333;
}

body.light-theme .rules-section a {
  color: #7a5200;
}

@media (max-width: 760px) {
  .rules-page {
    padding: 14px 0 24px;
  }

  .rules-shell {
    border-radius: 14px;
  }

  .rules-header {
    padding: 20px 18px 16px;
  }

  .rules-header h1 {
    font-size: 32px;
  }

  .rules-section {
    padding: 18px;
  }
}
