/* =========================================================
   EternaPath — Legal Pages Styles
   Colour scheme: Black & Deep Red
   ========================================================= */

.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 80vh;
  background: var(--dark);
}

.legal-page__inner { max-width: 800px; }

.legal-page__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(192,39,45,.25);
}

.legal-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-page__meta { font-size: .85rem; color: rgba(255,255,255,.4); }

/* Content sections */
.legal-page__content section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.legal-page__content section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-page__content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.legal-page__content p {
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: .95rem;
}
.legal-page__content p:last-child { margin-bottom: 0; }

.legal-page__content ul { list-style: none; padding: 0; margin: 0 0 14px 0; }
.legal-page__content ul li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin-bottom: 8px;
  font-size: .95rem;
}
.legal-page__content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.legal-page__content a {
  color: var(--red-light);
  text-decoration: underline;
  transition: color var(--transition);
}
.legal-page__content a:hover { color: #e0373e; }

.legal-page__content strong { color: var(--white); font-weight: 600; }

/* Contact box inside legal */
.legal-contact-box {
  background: rgba(192,39,45,.06);
  border: 1px solid rgba(192,39,45,.2);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 16px;
}
.legal-contact-box p { margin-bottom: 6px !important; font-size: .9rem !important; color: rgba(255,255,255,.65) !important; }
.legal-contact-box p:last-child { margin-bottom: 0 !important; }

/* Table */
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
  line-height: 1.5;
}
.legal-table th {
  background: var(--red-dark);
  color: var(--white);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.legal-table td { color: rgba(255,255,255,.6); }
.legal-table td:first-child { color: var(--white); }
.legal-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.legal-table td code {
  background: rgba(192,39,45,.12);
  color: var(--red-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .85em;
}

/* Header on legal pages */
.legal-page ~ * .header__nav ul li a,
.site-header.scrolled .header__nav ul li a { color: rgba(255,255,255,.75); }

/* Back link */
.legal-page__back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(192,39,45,.2);
}

/* Footer on legal pages */
.site-footer .footer__bottom { border-top: 1px solid rgba(192,39,45,.12); }

@media (max-width: 600px) {
  .legal-table th, .legal-table td { padding: 8px 10px; font-size: .8rem; }
  .legal-page { padding-top: 90px; }
}
