.nation-rules {
  position: relative;
  overflow: hidden;
  padding: clamp(4.75rem, 7vw, 7.5rem) 0;
  color: #0a2029;
  background:
    radial-gradient(circle at 12% 15%, rgba(196, 158, 89, 0.12), transparent 26rem),
    linear-gradient(135deg, #f7f3ea 0%, #eee7da 100%);
  border-top: 1px solid rgba(10, 32, 41, 0.12);
}

.nation-rules::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  pointer-events: none;
  border: 1px solid rgba(165, 126, 59, 0.18);
}

.nation-rules__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(21rem, 0.78fr);
  gap: clamp(3rem, 7vw, 8.5rem);
  align-items: center;
}

.nation-rules .reference-kicker {
  margin: 0 0 1.35rem;
  color: #9b7537;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nation-rules__intro h2 {
  max-width: 12ch;
  margin: 0;
  color: #071c25;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.75rem, 4.6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.nation-rules__intro > p:last-child {
  max-width: 36rem;
  margin: clamp(1.7rem, 3vw, 2.4rem) 0 0;
  color: #53636a;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.75;
}

.nation-rules__document {
  position: relative;
  overflow: hidden;
  padding: clamp(2.1rem, 4vw, 3.5rem);
  color: #f7f2e8;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    #061e28;
  border: 1px solid rgba(203, 164, 91, 0.52);
  box-shadow: 0 2.2rem 5.5rem rgba(7, 24, 31, 0.22);
}

.nation-rules__document::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8.5rem;
  height: 3px;
  background: #c9a35d;
}

.nation-rules__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #d2b473;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nation-rules__label {
  margin: 2rem 0 0.75rem;
  color: #d2b473;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

body.signature-inner .nation-rules__document .nation-rules__label {
  color: #d2b473;
}

.nation-rules__document h3 {
  max-width: 15ch;
  margin: 0;
  color: #fffaf0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.signature-inner .nation-rules__document h3 {
  color: #fffaf0;
}

.nation-rules__document > p:not(.nation-rules__label) {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: rgba(247, 242, 232, 0.7);
  font-size: 0.96rem;
  line-height: 1.7;
}

.nation-rules__download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.25rem;
  min-width: min(100%, 20rem);
  margin-top: 2rem;
  padding: 1.05rem 1.2rem;
  color: #071c25;
  background: #cba45d;
  border: 1px solid #d9bc7f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nation-rules__download:hover {
  color: #071c25;
  background: #e0c787;
  transform: translateY(-2px);
}

.nation-rules__download:focus-visible {
  outline: 2px solid #fffaf0;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .nation-rules::before { inset: 0.65rem; }
  .nation-rules__shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .nation-rules__intro h2 { max-width: 13ch; }
}

@media (max-width: 520px) {
  .nation-rules__document { padding: 1.75rem 1.35rem; }
  .nation-rules__meta { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  .nation-rules__download { min-width: 100%; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nation-rules__download { transition: none; }
}
