/* Terms & Conditions block, shared by index.html and math-brawler.html.
   Colours fall back from the Math Brawler tokens to the homepage tokens. */
.tc {
  --tc-surface: var(--mb-surface, var(--bg-card));
  --tc-text: var(--mb-text, var(--text-heading));
  --tc-muted: var(--mb-muted, var(--text-body));
  --tc-border: var(--mb-border, var(--border-subtle));
  --tc-accent: var(--mb-accent, var(--brand-primary));
  --tc-gold: #e2b83f;
  position: relative;
  padding: 80px 0;
  scroll-margin-top: 94px;
}
.tc-panel { position: relative; padding: 3px; border-radius: 22px; background: linear-gradient(130deg, #ffdc66, #3fd9b2 38%, #57b8ff 68%, #a77bff); box-shadow: 0 34px 70px -44px rgba(0, 0, 0, .9), 0 0 60px -30px #ffdc66; }
.tc-inner { padding: 44px 40px 40px; border-radius: 19px; background: var(--tc-surface); }
.tc-head { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.tc-seal { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; font-size: 30px; font-weight: 800; color: #1a1503; background: linear-gradient(140deg, #fff3bf 0%, #ffdc66 45%, #f2b632 100%); box-shadow: 0 0 0 6px rgba(255, 220, 102, .16), 0 14px 28px -14px #f2b632; }
.tc-kicker { margin-bottom: 10px; color: var(--tc-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tc-head h2 { margin-bottom: 16px; color: var(--tc-text); font-size: 40px; line-height: 1.15; font-weight: 800; }
.tc-intro { color: var(--tc-muted); font-size: 16px; line-height: 1.8; }
.tc a { color: var(--tc-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tc-card { min-width: 0; padding: 24px 22px; border: 1px solid var(--tc-border); border-left: 4px solid var(--tc-gold); border-radius: 14px; background: linear-gradient(150deg, rgba(255, 220, 102, .08), transparent 60%); }
.tc-card-wide { grid-column: 1 / -1; }
.tc-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--tc-text); font-size: 19px; line-height: 1.35; font-weight: 800; }
.tc-card h3 span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; color: #1a1503; background: linear-gradient(140deg, #fff3bf, #ffdc66 50%, #f2b632); }
.tc-card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tc-card li { position: relative; padding-left: 20px; color: var(--tc-muted); font-size: 15px; line-height: 1.75; }
.tc-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-gold); }
.tc-card li strong { color: var(--tc-text); }
.tc-card > p { margin-bottom: 14px; color: var(--tc-muted); font-size: 15px; line-height: 1.75; }
.tc-contact { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--tc-border); background: linear-gradient(140deg, rgba(255, 220, 102, .16), rgba(63, 217, 178, .10)); color: var(--tc-text); text-decoration: none; }
.tc-contact a:hover { border-color: var(--tc-gold); }
.tc-contact small { display: block; color: var(--tc-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 820px) {
  .tc { padding: 56px 0; }
  .tc-grid { grid-template-columns: 1fr; }
  .tc-inner { padding: 30px 18px 22px; }
  .tc-head h2 { font-size: 30px; }
  .tc-intro, .tc-card li, .tc-card > p { font-size: 14px; }
  .tc-contact a { width: 100%; }
}
