/* ═══════════════════════════════════════════════════
   TrackLab — Legal Pages (Terms of Use, Responsible Gambling)
   Loaded on legal pages via v2_extra_css block.
   Inherits design tokens from v2.css (.v2-page scope)
   and layout from profile.css.
   ═══════════════════════════════════════════════════ */

/* ── Page hero ── */
.legal-hero { margin-bottom: 36px; animation: profFadeUp 0.4s ease; }
.legal-hero h1 {
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 30px;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 6px;
}
.legal-hero .lh-sub {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 4px;
}
.legal-hero .lh-updated {
  font-size: 12px; color: var(--text-muted); font-style: italic;
}

/* ── Sections ── */
.profile--terms .section,
.profile--responsible .section { animation: profFadeUp 0.4s ease 0.05s backwards; }

/* ── Callout boxes ── */
.profile--terms .callout,
.profile--responsible .callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 14px 0;
  position: relative; overflow: hidden;
}
.profile--terms .callout::before,
.profile--responsible .callout::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
}
.profile--terms .callout.blue::before,
.profile--responsible .callout.blue::before { background: var(--accent-blue); }
.profile--terms .callout.amber::before,
.profile--responsible .callout.amber::before { background: var(--accent-amber); }
.profile--terms .callout.red::before,
.profile--responsible .callout.red::before { background: var(--accent-red); }
.profile--terms .callout.green::before,
.profile--responsible .callout.green::before { background: var(--accent-green); }
.profile--terms .callout.lime::before,
.profile--responsible .callout.lime::before { background: var(--accent-lime); }

.profile--terms .callout .co-title,
.profile--responsible .callout .co-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.profile--terms .callout.blue .co-title,
.profile--responsible .callout.blue .co-title { color: var(--accent-blue); }
.profile--terms .callout.amber .co-title,
.profile--responsible .callout.amber .co-title { color: var(--accent-amber); }
.profile--terms .callout.red .co-title,
.profile--responsible .callout.red .co-title { color: var(--accent-red); }
.profile--terms .callout.green .co-title,
.profile--responsible .callout.green .co-title { color: var(--accent-green); }
.profile--terms .callout.lime .co-title,
.profile--responsible .callout.lime .co-title { color: var(--accent-lime); }

.profile--terms .callout .co-body,
.profile--responsible .callout .co-body {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.profile--terms .callout .co-body strong,
.profile--responsible .callout .co-body strong { color: var(--text-primary); }
.profile--terms .callout .co-body a,
.profile--responsible .callout .co-body a {
  color: var(--profile-accent); text-decoration: none;
}
.profile--terms .callout .co-body a:hover,
.profile--responsible .callout .co-body a:hover { text-decoration: underline; }

/* ── Sub-heading within section ── */
.profile--terms .sub-heading,
.profile--responsible .sub-heading {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--text-primary); margin: 18px 0 8px;
}

/* ── Legal list ── */
.legal-list {
  margin: 10px 0 14px 0;
  padding-left: 20px;
  list-style: disc;
}
.legal-list li {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 6px;
}
.legal-list li strong { color: var(--text-primary); }
.legal-list li code {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 3px;
}

/* ── Contact card ── */
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 14px 0;
}
.contact-card .cc-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px;
  margin-bottom: 6px;
}
.contact-card .cc-body {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.contact-card .cc-body a {
  color: var(--accent-blue); text-decoration: none;
}
.contact-card .cc-body a:hover { text-decoration: underline; }

/* ═══ Responsible Gambling — Resource Cards ═══ */
.resource-cards {
  display: flex; flex-direction: column; gap: 10px;
  margin: 16px 0;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  transition: border-color 0.15s;
}
.resource-card:hover { border-color: rgba(255,255,255,0.08); }

.rc-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px;
  margin-bottom: 2px;
}
.rc-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 8px;
}
.rc-links {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.rc-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 6px;
  text-decoration: none; transition: all 0.15s;
}
.rc-link.primary {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--accent-amber);
}
.rc-link.primary:hover { background: rgba(245,158,11,0.18); }
.rc-link.secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.rc-link.secondary:hover { background: rgba(255,255,255,0.08); }

.rc-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 6px;
  white-space: nowrap;
}
.rc-badge.free {
  background: rgba(34,197,94,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(34,197,94,0.18);
}
.rc-badge.confidential {
  background: rgba(59,130,246,0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.18);
}

/* ═══ Warning Signs Grid ═══ */
.signs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.sign-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.sign-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 14px;
}

/* ═══ Tips Grid ═══ */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tip-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.tip-body {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* ═══ Bookmaker Tools List ═══ */
.tools-list {
  display: flex; flex-direction: column; gap: 6px;
  margin: 14px 0;
}
.tool-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.tool-icon {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(59,130,246,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  margin-top: 1px;
}
.tool-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  margin-bottom: 2px;
}
.tool-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* ═══ Quick Help Card (sidebar) ═══ */
.quick-help {
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 16px;
  text-align: center;
}
.quick-help .qh-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 12px;
  color: var(--accent-red); margin-bottom: 6px;
}
.qh-phone {
  display: block;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.qh-phone:hover { color: var(--accent-amber); }
.qh-note {
  font-size: 10px; color: var(--text-muted); line-height: 1.4;
}

/* ═══ Responsive ═══ */
@media (max-width: 800px) {
  .legal-hero h1 { font-size: 24px; }
  .signs-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .resource-card { grid-template-columns: 1fr; }
  .rc-badge { justify-self: start; }
  .quick-help { flex: 0 0 auto; }
}
