/* ============ LEGAL STYLESHEET (privacy.html / terms-of-service.html) ============ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #0F0D0A;
  color: #E9E0C8;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

.legal-page ::selection {
  background-color: #E0AE2E;
  color: #0F0D0A;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  color: #F8F2E0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.3;
}

.legal-page a {
  color: #E0AE2E;
  text-decoration: none;
}

.legal-page a:hover {
  color: #F8F2E0;
  text-decoration: underline;
}

/* ============ LEGAL PAGE HEADER ============ */

.legal-header {
  background-color: #1A160E;
  border-bottom: 1px solid #3A2F1A;
}

.legal-header .lh-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px;
  position: relative;
}

.legal-header .lh-kicker {
  display: inline-block;
  background-color: #E0AE2E;
  color: #0F0D0A;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.legal-header h1 {
  font-size: 44px;
  color: #F8F2E0;
  margin-bottom: 14px;
}

.legal-header .lh-sub {
  color: #A99C7C;
  font-size: 17px;
  max-width: 640px;
}

.legal-header .lh-back {
  display: inline-block;
  margin-top: 22px;
  color: #E0AE2E;
  font-weight: 700;
}

.legal-header .lh-back:hover {
  color: #F8F2E0;
}

/* ============ LEGAL CONTENT LAYOUT ============ */

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.legal-content .legal-toc {
  background-color: #1A160E;
  border: 1px solid #3A2F1A;
  border-left: 3px solid #E0AE2E;
  padding: 28px 32px;
  margin: 44px 0 56px;
}

.legal-content .legal-toc h2 {
  font-size: 22px;
  color: #F8F2E0;
  margin-bottom: 16px;
}

.legal-content .legal-toc ol {
  padding-left: 22px;
}

.legal-content .legal-toc li {
  margin-bottom: 8px;
  color: #E9E0C8;
}

.legal-content .legal-toc li a {
  color: #E0AE2E;
}

.legal-content .legal-toc li a:hover {
  color: #F8F2E0;
}

.legal-content section {
  margin-bottom: 52px;
  background-color: transparent;
}

/* Scope isolation: legal sections must never inherit homepage section backgrounds. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content h2 {
  font-size: 28px;
  color: #F8F2E0;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #3A2F1A;
  position: relative;
}

.legal-content h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #E0AE2E;
  transform: rotate(45deg);
  margin-right: 14px;
  vertical-align: middle;
}

.legal-content h3 {
  font-size: 21px;
  color: #E9E0C8;
  margin: 26px 0 10px;
}

.legal-content p {
  color: #E9E0C8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 26px;
  color: #E9E0C8;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content ul li::marker {
  color: #E0AE2E;
}

.legal-content strong {
  color: #F8F2E0;
}

/* ============ LEGAL FOOTER ============ */

.legal-footer {
  background-color: #0F0D0A;
  border-top: 1px solid #3A2F1A;
}

.legal-footer .lf-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.legal-footer .lf-cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.legal-footer .lf-brand {
  color: #F8F2E0;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 15px;
}

.legal-footer .lf-brand .seal-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #E0AE2E;
  margin-right: 10px;
  vertical-align: middle;
}

.legal-footer .lf-links a {
  color: #E9E0C8;
  margin-right: 20px;
}

.legal-footer .lf-links a:hover {
  color: #E0AE2E;
}

.legal-footer .lf-legal {
  border-top: 1px solid #3A2F1A;
  padding-top: 20px;
  color: #A99C7C;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer .lf-legal a {
  color: #A99C7C;
}

.legal-footer .lf-legal a:hover {
  color: #E0AE2E;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 23px;
  }

  .legal-content .legal-toc {
    padding: 22px;
  }

  .legal-footer .lf-legal {
    flex-direction: column;
    gap: 6px;
  }
}
