/* ============================================================
   Terms & Conditions — betpinnacle-terms-conditions (1440)
                        / terms-conditions-mobile (390)
   ============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- legal hero ---------- */
.legal-hero { background: var(--paper); padding: 32px 0; }
.legal-title {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  line-height: 1; letter-spacing: -1px; text-transform: uppercase; color: var(--ink);
}
.legal-sub {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  line-height: 1; color: #5d616e; margin-top: 8px;
}
.legal-divider { height: 1px; background: var(--line); opacity: 0.6; margin-top: 8px; }
@media (min-width: 992px) {
  .legal-hero { padding: 72px 0 64px; }
  .legal-title { font-size: 56px; letter-spacing: -1.5px; }
  .legal-sub { font-size: 18px; margin-top: 12px; }
  .legal-divider { margin-top: 12px; }
}

/* ---------- article layout ---------- */
.terms-article { background: var(--paper); }
.terms-cols { display: flex; flex-direction: column; }

/* on this page (index) */
.terms-toc { padding: 16px 0 32px; }
.toc-label {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  line-height: 1; letter-spacing: 0.8px; text-transform: uppercase; color: #5d616e;
}
.toc-list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.toc-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.36;
}
.toc-num { color: #5d616e; flex: none; }
.toc-text { color: #5d616e; flex: 1 1 auto; }
.toc-item.is-active .toc-num { color: var(--brown); }
.toc-item.is-active .toc-text { color: var(--ink); }
.toc-divider { height: 1px; background: var(--line); opacity: 0.6; margin-top: 16px; }

/* document content */
.terms-content { display: flex; flex-direction: column; gap: 32px; padding-bottom: 48px; }
.terms-section { scroll-margin-top: 16px; }
.ts-heading {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1; letter-spacing: -0.5px; color: var(--ink);
}
.ts-body { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ts-para { font-size: 14px; line-height: 22px; color: var(--ink); }
.ts-para .cl-num { font-weight: 700; }
.ts-divider { height: 1px; background: var(--line); opacity: 0.6; margin-top: 12px; }

@media (min-width: 992px) {
  .terms-cols { flex-direction: row; gap: 48px; padding-bottom: 96px; }
  .terms-toc {
    width: 320px; flex: none; padding: 24px 0 60px;
    position: sticky; top: 0; align-self: flex-start;
    max-height: 100vh; overflow-y: auto;
  }
  .toc-label { font-size: 14px; letter-spacing: 1px; }
  .toc-list { margin-top: 24px; gap: 8px; }
  .toc-item { font-size: 14px; gap: 12px; }
  .terms-content { flex: 1 1 auto; min-width: 0; gap: 48px; padding-bottom: 0; }
  .ts-heading { font-size: 24px; }
  .ts-body { margin-top: 20px; gap: 12px; }
  .ts-para { font-size: 15px; line-height: 24px; }
  .ts-para .cl-num { font-weight: 400; }
  .ts-divider { margin-top: 20px; }
}

/* ---------- responsible wagering ---------- */
.responsible { background: var(--card); padding: 40px 0; }
.responsible .section-title { font-size: 28px; line-height: 1.1; }
.rw-text { font-size: 14px; line-height: 22px; color: #5d616e; margin-top: 24px; }
.tools { margin-top: 24px; }
.tool { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: #5d616e; }
.tool-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.tool-text { font-size: 14px; line-height: 22px; color: #5d616e; }
.tool-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--ink); }
@media (min-width: 992px) {
  .responsible { padding: 80px 0 96px; }
  .responsible .section-title { font-size: 72px; line-height: 1; letter-spacing: -2px; }
  .rw-text { font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 760px; margin-top: 40px; }
  .rw-divider { height: 1px; background: var(--line); margin-top: 40px; }
  .tools { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
  .tool { border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; gap: 12px; }
  .tool:last-child { border-bottom: 0; padding-bottom: 0; }
  .tool-num { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
  .tool-title { font-size: 24px; }
  .tool-text { line-height: 1.5; color: var(--ink); }
}

/* ---------- loss warning ---------- */
.loss-warning { background: var(--accent); padding: 40px 0; }
.lw-wrap { display: flex; flex-direction: column; gap: 24px; }
.lw-kicker { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.lw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  line-height: 1.05; color: var(--ink); margin-top: 12px; text-transform: uppercase;
}
.lw-line1 { font-size: 14px; line-height: 22px; color: var(--ink); margin-top: 12px; }
.lw-line2 { font-weight: 700; font-size: 14px; line-height: 22px; color: var(--ink); margin-top: 12px; }
.betstop-module {
  background: var(--ink); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #ffffff; }
.bm-text { font-size: 14px; line-height: 22px; color: #ffffff; opacity: 0.9; }
.bm-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--accent); }
@media (min-width: 992px) {
  .loss-warning { padding: 96px 0; }
  .lw-wrap { flex-direction: row; gap: 24px; }
  .lw-left { flex: 1; }
  .lw-title { font-size: 64px; margin-top: 16px; }
  .lw-line1 { font-size: 14px; line-height: 1; margin-top: 16px; }
  .lw-line2 { font-size: 14px; line-height: 1; margin-top: 16px; }
  .betstop-module { width: 360px; flex: none; border-radius: 24px; padding: 24px; gap: 12px; }
  .bm-title { font-size: 44px; letter-spacing: -1px; }
  .bm-text { line-height: 1.2; opacity: 1; }
  .bm-link { color: #ffffff; }
}

/* --- interaction polish --- */
.toc-item:hover .toc-label { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .toc-item .toc-label, .toc-item .toc-num { transition: color 0.15s cubic-bezier(0.2, 0, 0, 1); }
}
