/* ── PAGE INTRO (shared with news) ── */
.page-intro { padding: 4rem 2rem 2.5rem; background: var(--bg2); border-bottom: 1px solid var(--border); }
.page-body   { padding: 3.5rem 2rem 5rem; background: var(--bg); }

/* ── CARD GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
@media(max-width:680px){ .cards-grid { grid-template-columns: 1fr; } }

.page-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem 1.75rem;
}
.page-card-icon { font-size: 2rem; margin-bottom: 0.9rem; display: block; }
.page-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.9rem; }
.page-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.page-card--link { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
.page-card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
.page-card-more { display: inline-block; font-size: 0.83rem; font-weight: 700; color: var(--accent); }
.apply-back { display: block; margin-bottom: 1.1rem; font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.apply-back:hover { color: var(--text); }
.apply-cta { margin-top: 2rem; padding: 1.4rem 1.6rem; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); border-radius: 14px; }
.apply-cta h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.apply-cta p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.page-card ul li { font-size: 0.83rem; color: var(--muted); display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.5; }
.page-card ul li::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── RULES ── */
.rules-list { display: flex; flex-direction: column; gap: 0.85rem; max-width: 820px; }
.rule-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.2rem 1.4rem;
}
.rule-num {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 900;
  color: var(--accent); flex-shrink: 0; min-width: 2rem; padding-top: 1px;
}
.rule-body h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.rule-body p  { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }
.rule-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.3rem; }
.rule-body ul li { font-size: 0.87rem; color: var(--muted); line-height: 1.55; display: flex; align-items: flex-start; gap: 0.5rem; }
.rule-body ul li::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── TEAM APPLICATION STEPS ── */
.steps-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.step { display: flex; align-items: flex-start; gap: 0.8rem; flex: 1; min-width: 180px; }
.step-num { background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-text strong { font-family: var(--font-head); font-size: 0.88rem; display: block; margin-bottom: 0.2rem; }
.step-text span { font-size: 0.82rem; color: var(--muted); }

/* ── REQUIREMENTS BOX ── */
.req-box { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); border-radius: 14px; padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.req-box h3 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 0.75rem; }
.req-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.req-box ul li { font-size: 0.87rem; color: var(--muted); display: flex; gap: 0.6rem; }
.req-box ul li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── CREATORS ── */
.creators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.creator-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.4rem 1.2rem; text-align: center;
}
.creator-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border2); margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; }
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-name { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.creator-platforms { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.creator-platform { font-size: 0.7rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.8px; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }

/* ── TEAM MEMBERS ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.team-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.2rem; text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 8px; background: var(--bg3); border: 2px solid var(--border2); margin: 0 auto 0.75rem; overflow: hidden; image-rendering: pixelated; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.team-name { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; margin-bottom: 0.45rem; }
.team-role { display: inline-block; font-size: 0.68rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.8px; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid; }
.team-role.owner     { color: #5d1414; border-color: rgba(93,20,20,0.5);   background: rgba(93,20,20,0.12); }
.team-role.admin     { color: #aa0000; border-color: rgba(170,0,0,0.4);    background: rgba(170,0,0,0.1); }
.team-role.dev       { color: #ff5555; border-color: rgba(255,85,85,0.4);  background: rgba(255,85,85,0.1); }
.team-role.mod       { color: #3498db; border-color: rgba(52,152,219,0.4); background: rgba(52,152,219,0.1); }
.team-role.support   { color: #4ebaff; border-color: rgba(78,186,255,0.4); background: rgba(78,186,255,0.1); }
.team-role.community { color: #58ffc5; border-color: rgba(88,255,197,0.4); background: rgba(88,255,197,0.1); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; max-width: 820px; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.4rem; }
.faq-item summary { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\25BE'; color: var(--accent); font-size: 1rem; font-weight: 700; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(-180deg); }
.faq-item p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; margin-top: 0.75rem; }

/* ── LEGAL TEXT PAGES ── */
.legal-layout {
  display: flex; gap: 2.5rem; align-items: flex-start;
  max-width: 1060px;
}

/* Sidebar TOC */
.legal-toc {
  width: 220px; flex-shrink: 0;
  position: sticky; top: 104px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.2rem 1.4rem;
}
.legal-toc-title {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
  margin-bottom: 0.9rem;
}
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.legal-toc ol li a {
  display: block; font-size: 1.08rem; color: var(--muted); text-decoration: none;
  padding: 0.35rem 0.5rem; border-radius: 6px; border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s; line-height: 1.4;
}
.legal-toc ol li a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.legal-toc ol li a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(34,197,94,0.06); }

/* Main content */
.legal-content { flex: 1; min-width: 0; }
.legal-content h2 {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 800;
  margin: 2rem 0 0.6rem; color: var(--text);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .sec-num {
  font-size: 0.95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); flex-shrink: 0;
}
.legal-content h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent);
  margin: 1.25rem 0 0.4rem;
}
.legal-content p  { font-size: 1.2rem; color: var(--muted); line-height: 1.8; margin-bottom: 0.6rem; }
.legal-content a  { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content ul { list-style: none; margin: 0.5rem 0 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.legal-content ul li {
  font-size: 1.15rem; color: var(--muted); line-height: 1.65;
  display: flex; align-items: flex-start; gap: 0.55rem;
}
.legal-content ul li::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.legal-content .legal-block {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; margin: 0.75rem 0;
}
.legal-content .legal-block p { margin-bottom: 0; }
.legal-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 1.02rem; color: var(--muted); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.legal-meta span { font-family: var(--font-head); font-weight: 700; color: var(--accent); }

@media(max-width: 820px) {
  .legal-layout { flex-direction: column; }
  .legal-toc { width: 100%; position: static; }
}
@media(max-width: 480px) {
  .legal-toc { display: none; }
}
