.legal-section { max-width: 850px; margin: 40px auto; padding: 30px 20px; background: #1a1a1a; border-radius: 16px; color: #fff; font-family: system-ui, sans-serif; } .legal-title { text-align: center; font-size: 2.4rem; font-weight: 900; color: #ff3333; /* Brighter red – no longer faded */ margin-bottom: 6px; } .legal-subtitle { text-align: center; color: #cccccc; margin-bottom: 25px; font-size: 1.05rem; } .legal-item { margin-bottom: 12px; border-radius: 10px; overflow: hidden; background: #2a2a2a; border: 1px solid #3a3a3a; } .legal-header { padding: 18px 22px; font-size: 1.12rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #333; } .legal-header:hover { background: #3d3d3d; } .legal-header .arrow { color: #00ff9d; transition: transform 0.35s ease; } .legal-item.open .arrow { transform: rotate(180deg); } .legal-body { max-height: 0; overflow: hidden; padding: 0 22px; background: #262626; line-height: 1.65; font-size: 0.98rem; transition: max-height 0.5s ease, padding 0.5s ease; } .legal-item.open .legal-body { max-height: 1200px; padding: 18px 22px; } .legal-body p { margin: 0 0 14px; } .legal-body strong { color: #00ff9d; } document.querySelectorAll('.legal-header').forEach(header => { header.addEventListener('click', () => { const item = header.parentElement; const isOpen = item.classList.contains('open'); document.querySelectorAll('.legal-item').forEach(i => i.classList.remove('open')); if (!isOpen) item.classList.add('open'); }); });