/* ══════════════════════════════════════════════════════════════════
   Red Galaxy — Chat Rules Page Styles
   ══════════════════════════════════════════════════════════════════ */

/* Wider container for chat rules — table needs more horizontal room */
.privacy-page .privacy-content {
  max-width: 1200px;
}

.rules-table-wrap {
  position: relative;
  overflow-x: auto;
  margin: 24px 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(224, 80, 48, 0.25);
  background: rgba(20, 8, 10, 0.45);
  -webkit-overflow-scrolling: touch;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.82rem;
  min-width: 760px;
}

/* Column widths: first column wider for rule names, 7 sanction columns share rest */
.rules-table thead th:first-child,
.rules-table tbody td:first-child {
  width: 26%;
}
.rules-table thead th:not(:first-child),
.rules-table tbody td:not(:first-child) {
  width: 10.57%;
}

.rules-table th,
.rules-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(224, 80, 48, 0.12);
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rules-table thead th {
  background: rgba(200, 48, 32, 0.18);
  color: var(--text-accent);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.66rem;
  white-space: normal;
  line-height: 1.25;
}

.rules-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.rules-table tbody tr:hover {
  background: rgba(200, 48, 32, 0.07);
}

.rules-table td.rule-name {
  font-weight: 600;
  color: #ffe7df;
  font-size: 0.82rem;
  line-height: 1.35;
}

.rules-table td.sanction {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  line-height: 1.3;
}

.sanction.perm  { color: #ff6b5a; font-weight: 700; }
.sanction.mute  { color: #ffd28a; }
.sanction.short { color: #ffb38f; }
.sanction.long  { color: #ff8c70; }

.rules-legend {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 12px;
  line-height: 1.55;
}

/* Tablet */
@media (max-width: 900px) {
  .rules-table {
    font-size: 0.76rem;
  }
  .rules-table th,
  .rules-table td {
    padding: 8px 8px;
  }
  .rules-table thead th {
    font-size: 0.6rem;
  }
  .rules-table td.rule-name {
    font-size: 0.76rem;
  }
  .rules-table td.sanction {
    font-size: 0.72rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .rules-table {
    font-size: 0.72rem;
    min-width: 680px;
  }
  .rules-table th,
  .rules-table td {
    padding: 7px 6px;
  }
}
