/* ============================================================
   TVSpot Legal — Flat Editorial Layout
   ============================================================ */

/* ─── PAGE ───────────────────────────────────────────────── */
.legal-main {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 108px 32px 140px;
  animation: fadeUp 0.4s ease both;
  animation-delay: 0.05s;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 36px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--text-secondary); }

.breadcrumb-sep { opacity: 0.28; font-size: 10px; }
.breadcrumb-current { color: var(--text-secondary); }

/* ─── PAGE HEADER ────────────────────────────────────────── */
.legal-header {
  margin-bottom: 60px;
}

.legal-eyebrow {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.9;
}

.legal-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.02em;
  border-left: 2px solid rgba(74,222,128,0.5);
  padding-left: 8px;
  border-radius: 0;
}

.legal-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* ─── TWO-COLUMN GRID ────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 52px;
  align-items: start;
}

/* ─── TABLE OF CONTENTS ─────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 80px; 
}

.legal-toc-label {
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-ultra-muted);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-toc ol li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: -0.007em;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  transition: color 0.14s, border-color 0.14s;
}

.legal-toc ol li a:hover {
  color: var(--text-secondary);
}

.legal-toc ol li a.toc-active {
  color: var(--text-primary);
  border-left-color: var(--accent);
}

.toc-num {
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-ultra-muted);
  min-width: 12px;
  flex-shrink: 0;
  transition: color 0.14s;
}

.legal-toc ol li a.toc-active .toc-num {
  color: var(--accent);
}

/* ─── CONTENT COLUMN ─────────────────────────────────────── */
.legal-content-col { min-width: 0; }

.legal-highlight {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 0 0 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.legal-highlight-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.72;
  opacity: 0.85;
}

.legal-highlight p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 !important;
  letter-spacing: -0.01em;
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-num {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  opacity: 0.85;
  flex-shrink: 0;
  min-width: 16px;
}

.legal-section p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
  letter-spacing: -0.009em;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  margin: 10px 0 12px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal-section li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.68;
  padding-left: 16px;
  position: relative;
  letter-spacing: -0.009em;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.legal-section li strong {
  color: rgba(238,238,240,0.80);
  font-weight: 600;
}

/* ─── LINKS ─────────────────────────────────────────────── */
.legal-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  transition: opacity 0.15s, border-color 0.15s;
}
.legal-section a:hover {
  opacity: 0.75;
  border-color: var(--accent);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal-toc {
    position: static;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }

  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 4px;
  }

  .legal-toc ol li a {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding: 3px 8px 3px 0;
    font-size: 11.5px;
  }

  .legal-toc ol li a.toc-active {
    color: var(--accent);
    border-left: none;
  }
}

@media (max-width: 600px) {
  .legal-main { padding: 92px 20px 100px; }
  .legal-header { margin-bottom: 44px; }
  .legal-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .legal-section { padding: 26px 0; }
}

/* ─── IN-APP MODE — hide web chrome ─────────────────────── */
.in-app #main-nav,
.in-app .site-footer,
.in-app .breadcrumb,
.in-app .legal-eyebrow,
.in-app .legal-badge {
  display: none;
}
.in-app .legal-main { padding-top: 28px; }
.in-app .legal-header { margin-bottom: 36px; }
.in-app ::-webkit-scrollbar { display: none; }