/* ============================================
   LEGAL PAGES — Shared Styles
   ============================================ */

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Simplified Navbar ── */
.legal-navbar {
  background: var(--dark);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.legal-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-navbar .navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.legal-navbar .navbar-logo img {
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}

.legal-navbar .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-navbar .back-link:hover {
  color: var(--primary-light);
}

/* ── Content Area ── */
.legal-content {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

.legal-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-meta strong {
  color: var(--text);
}

/* ── Table of Contents ── */
.legal-toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.legal-toc li::before {
  content: counter(toc) ". ";
  color: var(--primary);
  font-weight: 600;
}

.legal-toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--primary);
}

/* ── Sections ── */
.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 2px solid var(--primary);
  display: inline-block;
}

.legal-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-section strong {
  color: var(--dark);
}

/* ── Data Tables ── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-table th {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.legal-table th:first-child {
  border-radius: 8px 0 0 0;
}

.legal-table th:last-child {
  border-radius: 0 8px 0 0;
}

.legal-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.legal-table tr:nth-child(even) td {
  background: var(--light);
}

/* ── Highlight Box ── */
.legal-highlight {
  background: var(--primary);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.03));
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal-highlight p {
  margin: 0;
  font-weight: 500;
  color: var(--dark);
}

/* ── Contact Box ── */
.legal-contact {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 40px;
}

.legal-contact h3 {
  margin-top: 0;
}

.legal-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-contact a:hover {
  text-decoration: underline;
}

/* ── Footer Brand ── */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-dsm-logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-dsm-logo:hover {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .legal-content {
    padding: 32px 16px 60px;
  }

  .legal-content h1 {
    font-size: 1.6rem;
  }

  .legal-section h2 {
    font-size: 1.15rem;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .legal-content h1 {
    font-size: 1.35rem;
  }

  .legal-toc {
    padding: 16px 20px;
  }
}
