/* terms.css — صفحه‌ی «قوانین و مقررات»؛ هم‌سبک about.css (زرد #ffb800، متن #0a0a0f، خط #edf0f4) */
body.terms-page{
  --tr-ink:#0a0a0f; --tr-muted:#6b7280; --tr-line:#edf0f4; --tr-chip:#f6f8fa; --tr-yellow:#ffb800; --tr-yellow-soft:#fff6dc;
  background:#fff; color:var(--tr-ink); font-family:"Vazirmatn",system-ui,sans-serif; -webkit-font-smoothing:antialiased; padding-top:0;
}
html:has(body.terms-page){ overflow-x:clip; scroll-behavior:smooth; }
body.terms-page .topbar{ position:relative; top:auto; z-index:60; }

.tr-main{ max-width:1100px; margin:0 auto; padding:28px 20px 72px; display:flex; flex-direction:column; gap:22px; }

.tr-hero{
  text-align:center; padding:44px 20px 40px; border-radius:24px; background:var(--tr-chip); border:1px solid var(--tr-line);
  background-image:radial-gradient(circle at 85% 0%, rgba(255,184,0,.22), transparent 55%), radial-gradient(circle at 10% 100%, rgba(255,184,0,.12), transparent 50%);
}
.tr-eyebrow{ display:inline-block; padding:5px 14px; border-radius:999px; background:var(--tr-yellow-soft); color:#8a5d00; font-size:13px; font-weight:600; }
.tr-hero h1{ margin:14px 0 8px; font-size:30px; line-height:1.5; font-weight:800; }
.tr-updated{ margin:0; font-size:14.5px; color:var(--tr-muted); }

.tr-card{ background:#fff; border:1px solid var(--tr-line); border-radius:24px; padding:26px 30px; }
.tr-card p{ margin:0 0 12px; font-size:15.5px; line-height:2.1; color:#2b2f38; text-align:justify; }
.tr-card p:last-child{ margin-bottom:0; }

.tr-layout{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:22px; align-items:start; }
.tr-list{ display:flex; flex-direction:column; gap:16px; min-width:0; }

/* فهرست */
.tr-toc{ position:sticky; top:16px; background:#fff; border:1px solid var(--tr-line); border-radius:20px; padding:18px 14px; max-height:calc(100vh - 32px); overflow:auto; }
.tr-toc h2{ margin:0 0 10px; padding:0 8px; font-size:15px; font-weight:800; }
.tr-toc ol{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:2px; }
.tr-toc a{ display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:10px; font-size:13.5px; line-height:1.6; color:#3a404c; text-decoration:none; transition:background .15s ease; }
.tr-toc a:hover{ background:var(--tr-yellow-soft); }
.tr-toc a span{ flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:8px; background:var(--tr-chip); font-size:12px; color:var(--tr-muted); }

/* بخش‌ها */
.tr-sec{ scroll-margin-top:16px; }
.tr-h2{ display:flex; align-items:center; gap:12px; margin:0 0 14px; font-size:18.5px; font-weight:800; line-height:1.6; }
.tr-num{ flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--tr-yellow-soft); color:#8a5d00; font-size:15px; font-weight:800; }
.tr-ul{ margin:0 0 14px; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.tr-ul li{ position:relative; padding-right:20px; font-size:15px; line-height:2; color:#2b2f38; }
.tr-ul li::before{ content:""; position:absolute; right:3px; top:.95em; width:6px; height:6px; border-radius:50%; background:var(--tr-yellow); }

.tr-dl{ margin:0; display:flex; flex-direction:column; }
.tr-dl > div{ display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--tr-line); font-size:15px; }
.tr-dl > div:last-child{ border-bottom:0; padding-bottom:0; }
.tr-dl dt{ color:var(--tr-muted); flex:none; }
.tr-dl dd{ margin:0; font-weight:600; }
.tr-dl a{ color:inherit; text-decoration:none; }

@media (max-width:700px){
  .tr-layout{ grid-template-columns:1fr; }
  .tr-toc{ position:static; max-height:none; }
  .tr-toc ol{ display:grid; grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .tr-main{ padding:16px 16px 56px; gap:16px; }
  .tr-hero{ padding:32px 16px 28px; border-radius:20px; }
  .tr-hero h1{ font-size:22px; }
  .tr-card{ padding:20px 18px; border-radius:20px; }
  .tr-card p{ font-size:14.5px; line-height:2; }
  .tr-h2{ font-size:16.5px; }
  .tr-toc ol{ grid-template-columns:1fr; }
  .tr-dl > div{ flex-direction:column; gap:4px; font-size:14px; }
}
