/* صفحة الشروط والأحكام — تتبع هوية صفحتَي الإرجاع والخصوصية.
   ⚠️ المتغيّرات من نظام الثيم (--brand-primary · --text-h · --border):
      ألوانٌ ثابتة هنا تكسر الوضع الداكن وتبديل الثيمات من اللوحة. */

.tc-page { padding: 28px 0 100px; }

.tc-crumb { margin: 16px 0 8px; font-size: 12.5px; color: var(--text-m); }
.tc-crumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; list-style: none; }
.tc-crumb li { display: flex; align-items: center; gap: 4px; }
.tc-crumb a { color: var(--text-m); text-decoration: none; }
.tc-crumb li[aria-current] { font-weight: 700; color: var(--text-h); }

.tc-header { text-align: center; margin-bottom: 26px; }
.tc-header h1 { font-family: var(--font-display, 'Cormorant Garamond', serif); font-size: 36px; font-weight: 600; color: var(--text-h); margin-bottom: 10px; }
.tc-header p { font-size: 14px; color: var(--text-m); max-width: 520px; margin: 0 auto; }

.tc-intro { font-size: 14px; color: var(--text-m); line-height: 1.9; text-align: center; max-width: 760px; margin: 0 auto 30px; }

.tc-highlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.tc-hl-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.tc-hl-num { font-family: var(--font-numeric, 'Cormorant Garamond', serif); font-size: 34px; font-weight: 700; color: var(--brand-primary); line-height: 1.2; }
.tc-hl-unit { font-size: 12.5px; font-weight: 700; color: var(--brand-primary); }
.tc-hl-label { font-size: 12.5px; color: var(--text-m); margin-top: 6px; }

.tc-section { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 18px; }
.tc-section h2 { font-family: var(--font-display, 'Cormorant Garamond', serif); font-size: 21px; font-weight: 600; color: var(--text-h); margin: 0 0 16px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
/* رقم المادة في دائرة — يجعل التنقّل بين تسع عشرة مادة ممكناً بالنظر */
.tc-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-primary); color: #fff;
          font-family: var(--font-numeric, inherit); font-size: 14px; font-weight: 700;
          display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-label { display: block; font-family: var(--font-body, inherit); font-size: 11.5px; font-weight: 700;
            color: var(--brand-primary); letter-spacing: .3px; margin-bottom: 2px; }

/* ⚠️ `list-style:none` مع ترقيم يدوي: الترقيم التلقائي للمتصفّح يضع
   النقطة في الجهة الخطأ بالعربية ولا يقبل تلويناً. */
.tc-list { margin: 0; padding: 0; list-style: none; counter-reset: tc-item; }
.tc-list li { position: relative; counter-increment: tc-item; padding: 11px 0 11px 0;
              padding-inline-start: 30px; border-bottom: 1px solid var(--border);
              font-size: 13.5px; color: var(--text-m); line-height: 1.85; }
.tc-list li:last-child { border-bottom: none; }
.tc-list li::before { content: counter(tc-item); position: absolute; inset-inline-start: 0; top: 12px;
                      width: 21px; height: 21px; border-radius: 50%;
                      background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
                      color: var(--brand-primary); font-size: 11px; font-weight: 700;
                      display: flex; align-items: center; justify-content: center; }
.tc-list li strong { color: var(--text-h); font-weight: 700; }

.tc-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border);
           font-size: 13px; color: var(--text-m); line-height: 1.8; }
.tc-note a { color: var(--brand-primary); font-weight: 700; text-decoration: none; }
.tc-note a:hover { text-decoration: underline; }

.tc-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tc-dl > div { background: var(--bg-soft, transparent); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.tc-dl dt { font-size: 11.5px; color: var(--text-m); margin-bottom: 3px; }
.tc-dl dd { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-h); word-break: break-word; }
.tc-dl dd a { color: var(--brand-primary); text-decoration: none; }

.tc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tc-links a { display: inline-block; background: var(--brand-primary); color: #fff; padding: 10px 20px;
              border-radius: var(--r-full); font-size: 13px; font-weight: 700; text-decoration: none; transition: opacity 200ms; }
.tc-links a:hover { opacity: .88; }

.tc-closing { text-align: center; font-size: 13.5px; color: var(--text-m); line-height: 1.9; margin-top: 26px; }

@media (max-width: 640px) {
  .tc-header h1 { font-size: 28px; }
  .tc-section { padding: 18px 16px; }
  .tc-section h2 { font-size: 18px; }
  .tc-hl-num { font-size: 27px; }
}
