/* assets/css/legal.css
   Shared styles for Terms, Privacy Policy, and Refund Policy pages
*/

/* ── Bootstrap conflict isolation ────────────────────────── */
.tn-page-wrap h1, .tn-page-wrap h2, .tn-page-wrap h3,
.tn-page-wrap h4, .tn-page-wrap h5, .tn-page-wrap h6 { margin-top: 0; margin-bottom: 0; }
.tn-page-wrap p  { margin-top: 0; margin-bottom: 0; }
.tn-page-wrap ul, .tn-page-wrap ol { margin: 0; padding: 0; }

:root {
  --orange: #e8720c;
  --green:  #2b9348;
  --dark:   #0e0e0e;
  --grey:   #f4f4f4;
  --text:   #222;
  --muted:  #666;
  --border: #e5e5e5;
}

/* ── HERO ─────────────────────────────────────────────────── */
.legal-hero {
  background: var(--dark);
  padding: 72px 40px 56px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.legal-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}
.legal-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.legal-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.legal-hero__meta {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
}
.legal-hero__meta strong {
  color: rgba(255,255,255,.7);
  font-weight: 600;
}

/* ── LAYOUT WRAPPER ───────────────────────────────────────── */
.legal-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 0; padding: 40px 24px 60px; }
}
@media (max-width: 480px) {
  .legal-hero { padding: 72px 20px 48px; }
  .legal-wrap { padding: 32px 18px 50px; }
}

/* ── TABLE OF CONTENTS (sidebar) ─────────────────────────── */
.legal-toc {
  position: sticky;
  top: 80px;
  background: var(--grey);
  border-radius: 8px;
  padding: 22px 20px;
  border: 1px solid var(--border);
}
.legal-toc__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.legal-toc__list {
  list-style: decimal;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc__list a {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.4;
}
.legal-toc__list a:hover {
  color: var(--green);
}
@media (max-width: 860px) {
  .legal-toc {
    position: static;
    margin-bottom: 36px;
  }
}

/* ── ARTICLE BODY ─────────────────────────────────────────── */
.legal-body {
  min-width: 0;
}

.legal-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  background: #f0f7f1;
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 20px 22px;
  margin-bottom: 40px;
}

.legal-notice {
  background: #fff8f0;
  border-left: 4px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-bottom: 36px;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 16px;
  padding-top: 8px;
  /* scroll offset for sticky nav */
  scroll-margin-top: 100px;
}
.legal-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-top: 22px;
  margin-bottom: 10px;
}
.legal-section p {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  line-height: 1.82;
  color: #444;
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  line-height: 1.75;
  color: #444;
}
.legal-section li strong { color: var(--dark); }

.legal-section a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(43,147,72,.35);
  text-underline-offset: 3px;
  transition: color .2s;
}
.legal-section a:hover { color: #1e6b33; }

/* ── CONTACT BOX ──────────────────────────────────────────── */
.legal-contact {
  background: var(--grey);
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
}
.legal-contact p {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 0 !important;
}
.legal-contact a {
  color: var(--green);
  text-decoration: none;
}
.legal-contact a:hover { text-decoration: underline; }
