/* ============================================
   UNIFIED TEK — Legal Pages Stylesheet
   privacy.html & terms.html
   ============================================ */

/* ── LEGAL HERO ── */
.legal-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  padding: 3rem 0 2.5rem;
  color: #fff;
}
.legal-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.legal-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}
.legal-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: .35rem;
}
.legal-hero p {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  margin: 0;
}

/* ── LEGAL BODY ── */
.legal-body {
  padding: 3rem 0 4rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── TABLE OF CONTENTS ── */
.legal-toc {
  position: sticky;
  top: 90px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.toc-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .85rem;
}
.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.legal-toc a {
  display: block;
  font-size: .83rem;
  color: var(--text-muted);
  padding: .3rem .5rem;
  border-radius: 6px;
  transition: var(--transition);
  line-height: 1.4;
}
.legal-toc a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

/* ── LEGAL CONTENT ── */
.legal-content section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--blue-light);
}
.legal-content h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 1.25rem 0 .5rem;
}
.legal-content p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul {
  list-style: none;
  margin: .5rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.legal-content ul li {
  font-size: .92rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.65;
}
.legal-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .85rem;
}
.legal-content a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

/* ── PLAIN ENGLISH NOTICE ── */
.legal-notice {
  background: var(--blue-light);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.legal-notice strong {
  color: var(--blue);
}

/* ── ADDRESS BLOCK ── */
.legal-address {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: .75rem 0 1rem;
  display: inline-block;
  min-width: 240px;
}
.legal-address a {
  color: var(--blue);
  font-weight: 600;
}

/* ── THIRD-PARTY CARDS ── */
.third-party-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.third-party-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.tp-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .2rem;
}
.tp-purpose {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.third-party-card p {
  font-size: .88rem;
  margin-bottom: .75rem !important;
}
.tp-link {
  font-size: .83rem !important;
  color: var(--blue) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.tp-link:hover { text-decoration: underline !important; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    margin-bottom: 1.5rem;
  }
  .legal-toc ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem;
  }
  .legal-toc a {
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 99px;
    padding: .25rem .75rem;
    font-size: .78rem;
  }
}
@media (max-width: 480px) {
  .legal-hero-inner { flex-direction: column; gap: .75rem; }
}
