/* Eco Răzeni — static legal pages (privacy, terms, cookies) */

.legal-page .blog-details-text > h5 {
  display: none;
}

.blog-text.legal-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #3d3d3d;
}

/* Data actualizării — funcționează cu .legal-meta sau <p><em>…</em></p> */
.blog-text.legal-content .legal-meta,
.blog-text.legal-content > p:first-child:has(em),
.blog-text.legal-content > section > p:first-child,
.blog-text.legal-content > div > p:first-child {
  margin: 0 0 2rem !important;
  padding: 0.65rem 1rem;
  background: #f7f9f5;
  border-left: 3px solid #8bb867;
  border-radius: 0 4px 4px 0;
  font-size: 0.875rem;
  color: #5c5c5c;
}

.blog-text.legal-content .legal-meta,
.blog-text.legal-content > p:first-child em,
.blog-text.legal-content > section > p:first-child em,
.blog-text.legal-content > div > p:first-child em {
  font-style: normal;
  font-weight: 500;
}

.blog-text.legal-content p {
  margin: 0 0 1.25rem;
}

/* Suprascrie h2/h3 globale din temă (3.9rem) */
.blog-text.legal-content h2,
.blog-text.legal-content section h2,
.blog-text.legal-content div h2 {
  margin: 2.5rem 0 1rem !important;
  padding: 0 0 0.65rem !important;
  border-bottom: 1px solid #e4e8df;
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.35rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #232323 !important;
}

.blog-text.legal-content h2:first-child,
.blog-text.legal-content section h2:first-child {
  margin-top: 0 !important;
}

.blog-text.legal-content h3,
.blog-text.legal-content section h3,
.blog-text.legal-content div h3 {
  margin: 1.75rem 0 0.75rem !important;
  padding: 0 !important;
  border: 0;
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.1rem !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #232323 !important;
}

.blog-text.legal-content ul,
.blog-text.legal-content ol,
.blog-text.legal-content section ul,
.blog-text.legal-content section ol {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.blog-text.legal-content ul li,
.blog-text.legal-content ol li,
.blog-text.legal-content section ul li,
.blog-text.legal-content section ol li {
  position: relative;
  margin: 0 0 0.65rem 0 !important;
  margin-left: 0 !important;
  padding-left: 1.35rem;
}

.blog-text.legal-content ul li::before,
.blog-text.legal-content section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8bb867;
}

.blog-text.legal-content ol {
  counter-reset: legal-counter;
}

.blog-text.legal-content ol li,
.blog-text.legal-content section ol li {
  counter-increment: legal-counter;
}

.blog-text.legal-content ol li::before,
.blog-text.legal-content section ol li::before {
  content: counter(legal-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #8bb867;
  font-size: 0.95em;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

.blog-text.legal-content a {
  color: #4a7c32;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-text.legal-content a:hover {
  color: #3d6628;
}

.blog-text.legal-content strong {
  font-weight: 600;
  color: #232323;
}

.blog-text.legal-content code {
  padding: 0.15em 0.4em;
  font-size: 0.88em;
  background: #f0f2ed;
  border-radius: 3px;
  color: #333;
  word-break: break-word;
}

.blog-text.legal-content .legal-table-wrap {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-text.legal-content table,
.blog-text.legal-content .legal-table,
.blog-text.legal-content section table {
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse !important;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 0 !important;
}

.blog-text.legal-content .legal-table-wrap table {
  margin-bottom: 0;
}

.blog-text.legal-content th,
.blog-text.legal-content td,
.blog-text.legal-content section th,
.blog-text.legal-content section td {
  padding: 0.75rem 1rem !important;
  border: 1px solid #e4e8df !important;
  text-align: left;
  vertical-align: top;
}

.blog-text.legal-content th,
.blog-text.legal-content section th {
  background: #f7f9f5;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #232323;
}

.blog-text.legal-content tr:nth-child(even) td {
  background: #fafbf9;
}

.blog-text.legal-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e4e8df;
}

@media (max-width: 767px) {
  .blog-text.legal-content h2,
  .blog-text.legal-content section h2 {
    font-size: 1.2rem !important;
    margin-top: 2rem !important;
  }

  .blog-text.legal-content th,
  .blog-text.legal-content td,
  .blog-text.legal-content section th,
  .blog-text.legal-content section td {
    padding: 0.55rem 0.65rem !important;
    font-size: 0.875rem;
  }
}
