/* terms.css — page-specific styles for terms.html
   Shared tokens, header/nav, mobile-bottom-nav, footer, and .btn
   utilities all live in css/styles.css. Only Terms-page-unique
   blocks below (matches the about.css pattern). */

html {
  scroll-padding-top: 84px;
}
@media (max-width: 640px) {
  body {
    padding-bottom: 74px; /* clears the fixed mobile-bottom-nav (62px) + buffer */
  }
}

/* ── Hero ── */
.terms-hero {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  padding: 56px 20px 52px;
}
.terms-hero .container--narrow { text-align: center; max-width: 760px; margin: 0 auto; }
.terms-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px;
}
.terms-hero__eyebrow::before, .terms-hero__eyebrow::after {
  content: ''; display: block; width: 28px; height: 1.5px; background: var(--border);
}
.terms-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800; color: var(--ink); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.terms-hero h1 span { color: var(--blue); }
.terms-hero__sub {
  font-size: 1rem; color: var(--ink-soft);
  max-width: 520px; margin: 0 auto 24px; line-height: 1.7;
}
.terms-hero__meta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 99px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-mute);
}
.terms-hero__meta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* ── Layout: sidebar + content ── */
.terms-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Sticky sidebar TOC ── */
.terms-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.terms-toc__label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-mute); margin-bottom: 10px;
}
.terms-toc__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 2px;
}
.terms-toc__list a {
  display: block; padding: 7px 12px; border-radius: 7px;
  font-size: 0.80rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .15s, background .15s;
  border-left: 2px solid transparent;
}
.terms-toc__list a:hover {
  color: var(--blue); background: var(--blue-light);
}
.terms-toc__list a.active {
  color: var(--blue); background: var(--blue-light);
  border-left-color: var(--blue);
}

/* ── Content ── */
.terms-content { min-width: 0; }

.terms-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--nav-h) + 28px);
}
.terms-section:last-child { margin-bottom: 0; }

.terms-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  margin-bottom: 14px; line-height: 1.3;
}
.terms-section p {
  font-size: 0.90rem; color: var(--ink-soft); line-height: 1.75;
  margin-bottom: 12px;
}
.terms-section p:last-child { margin-bottom: 0; }
.terms-section ul, .terms-section ol {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px;
}
.terms-section ul li, .terms-section ol li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65;
}
.terms-section ul li::before {
  content: '→';
  color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.terms-section ol { counter-reset: terms-counter; }
.terms-section ol li { counter-increment: terms-counter; }
.terms-section ol li::before {
  content: counter(terms-counter);
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* Section card wrapper */
.terms-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: box-shadow .18s;
}
.terms-card:hover { box-shadow: var(--shadow-sm); }

/* Highlighted notice cards */
.terms-notice {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 14px;
  display: flex; gap: 14px; align-items: flex-start;
}
.terms-notice--blue { background: var(--blue-light); border: 1.5px solid var(--blue-mid); }
.terms-notice--amber { background: var(--amber-light); border: 1.5px solid #FCD34D; }
.terms-notice--green { background: var(--green-light); border: 1.5px solid #6EE7B7; }
.terms-notice__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.terms-notice p {
  font-size: 0.84rem; color: var(--ink-mid); line-height: 1.65; margin: 0;
}

/* Section divider */
.terms-divider {
  border: none; border-top: 1.5px solid var(--border);
  margin: 0 0 48px 0;
}

/* Conclusion banner */
.terms-conclusion {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative; overflow: hidden;
  margin-top: 56px;
}
.terms-conclusion::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.terms-conclusion h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800; color: #fff;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.terms-conclusion p {
  font-size: 0.90rem; color: var(--ink-mute);
  max-width: 440px; margin: 0 auto 24px; line-height: 1.65;
  position: relative; z-index: 1;
}
.terms-conclusion-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.btn--ghost-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.30);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .15s;
}
.btn--ghost-white:hover { background: rgba(255,255,255,0.10); }

/* Responsive */
@media (max-width: 860px) {
  .terms-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }
  .terms-toc { position: static; }
  .terms-toc__list {
    flex-direction: row; flex-wrap: wrap; gap: 6px;
  }
  .terms-toc__list a { border-left: none; border-bottom: 2px solid transparent; }
  .terms-toc__list a.active { border-bottom-color: var(--blue); border-left: none; }
  .terms-conclusion { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .terms-hero { padding: 44px 16px 40px; }
  .terms-card { padding: 20px 18px; }
  .terms-layout { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
