/* ========================================================
   ByEmpire — Legal Pages Stylesheet  (legal.css)
   Used by: /privacy-policy/  and  /terms-of-service/
   ======================================================== */

/* ── Legal Hero Banner ── */
.legal-hero {
  padding-top: calc(var(--nav-h) + var(--sp-12));
  padding-bottom: var(--sp-10);
  background: var(--clr-dark);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-faint);
  margin-bottom: var(--sp-4);
}
.breadcrumb a {
  color: var(--clr-primary-light);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--clr-text-faint); }

.legal-title {
  font-size: clamp(var(--fs-3xl), 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-3);
}

.legal-meta {
  font-size: var(--fs-sm);
  color: var(--clr-text-faint);
}

/* ── Legal Body Layout ── */
.legal-body {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-20);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-12);
  align-items: start;
}

@media (max-width: 900px) {
  .legal-body {
    grid-template-columns: 1fr;
  }
}

/* ── Table of Contents ── */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
}

.legal-toc-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-3);
}

.legal-toc ol {
  list-style: decimal;
  padding-left: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.legal-toc a {
  color: var(--clr-text-muted);
  transition: color var(--transition);
  line-height: 1.45;
  display: block;
}
.legal-toc a:hover { color: var(--clr-primary); }

@media (max-width: 900px) {
  .legal-toc {
    position: static;
    display: none; /* Hidden on mobile — sections are right there */
  }
}

/* ── Legal Section Content ── */
.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--clr-border-light);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: var(--sp-4);
  scroll-margin-top: calc(var(--nav-h) + var(--sp-4));
}

.legal-section h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.legal-section p {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  padding-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }

.legal-section li {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.75;
}

.legal-section a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.legal-section a:hover { color: var(--clr-primary-dark); }

/* ── Table ── */
.legal-table-wrap {
  overflow-x: auto;
  margin-block: var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.legal-table th {
  background: var(--clr-bg-alt);
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 700;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.legal-table td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--clr-text-muted);
  border-bottom: 1px solid var(--clr-border-light);
  vertical-align: top;
  line-height: 1.65;
}

.legal-table tr:last-child td { border-bottom: none; }

/* ── Contact Block ── */
.legal-contact-block {
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.legal-contact-block p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin: 0 !important;
}
