/* ===== RULES PAGE ===== */
.rules-header {
  padding: 72px 48px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 1200px;
  margin: 0 auto;
}

.rules-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.rules-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* ===== LAYOUT ===== */
.rules-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-top: 48px;
  align-items: start;
}

/* ===== TOC SIDEBAR ===== */
.rules-toc {
  position: sticky;
  top: 80px;
}

.toc-inner {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 20px;
}

.toc-heading {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
  font-weight: 600;
}

.toc-link {
  display: block;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 0;
  border-left: 2px solid transparent;
  margin-left: -21px;
  padding-left: 19px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.toc-active {
  color: white;
  border-left-color: #c41e3a;
}

/* ===== RULES BODY ===== */
.rules-body {
  min-width: 0;
}

.rule-section {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}

.rule-section h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rule-num {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c41e3a;
  flex-shrink: 0;
}

.rule-section p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.rule-section p a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rule-section p a:hover {
  color: white;
}

.rule-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-section ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

.rule-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: #c41e3a;
  flex-shrink: 0;
}

.rule-section ul li strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* CTA at bottom */
.rules-cta {
  margin-top: 48px;
  padding: 48px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.rules-cta p {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .rules-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rules-toc {
    display: none;
  }

  .rules-header {
    padding: 48px 24px 32px;
  }

  .rules-main {
    padding: 0 24px 60px;
  }

  .rules-cta {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   EXTRACTED INLINE STYLES (Clean UI)
========================================= */

/* ===== TABLE STYLES ===== */
.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.rules-table th,
.rules-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  text-align: left;
}
.rules-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #fff;
}

/* ===== EXAMPLE BOX STYLES ===== */
.rule-example-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-left: 4px solid #ff4444;
  margin: 1rem 0;
}
