/* ============================================================
   JX EngravePro LLC - Legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   Light theme: warm ivory / studio peach / deep umber
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #FAF6EF;
  color: #2B2522;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.legal-page a {
  color: #7A4423;
}

::selection {
  background-color: #DE8F5F;
  color: #FFFFFF;
}

:focus-visible {
  outline: 3px solid #DE8F5F;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Legal page header (a <header> element, never a <section>) */
.legal-header {
  background-color: #7A4423;
  color: #FFFFFF;
  text-align: center;
  padding: 46px 24px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal-header p {
  color: #F3D9C4;
  font-size: 15px;
}

.legal-header a {
  color: #DE8F5F;
  text-decoration: none;
}

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

/* Content column: every max-width container also centers itself
   and pads itself horizontally. */
.legal-content {
  padding: 48px 0 72px;
}

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

/* Table of contents */
.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #F0DCC6;
  border-radius: 6px;
  padding: 26px 30px;
  margin-bottom: 42px;
}

.legal-toc h2 {
  font-size: 17px;
  color: #7A4423;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 28px;
}

.legal-toc li {
  margin: 5px 0;
  font-size: 15px;
}

.legal-toc a {
  color: #7A4423;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #DE8F5F;
  text-decoration: underline;
}

/* Scope isolation: legal sections must never inherit page
   background tints from the main stylesheet. */
.legal-page .legal-content section { background-color: transparent !important; }

.legal-content section {
  margin-bottom: 30px;
}

.legal-content h2 {
  color: #7A4423;
  font-size: 26px;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F7E4D2;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  color: #7A4423;
  font-size: 19px;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #403731;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: #403731;
  line-height: 1.7;
  margin: 0 0 14px 26px;
}

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

.legal-content strong {
  color: #2B2522;
}

/* Legal footer links back to the homepage */
.legal-footer {
  background-color: #2B2522;
  color: #F3D9C4;
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
  line-height: 1.8;
}

.legal-footer a {
  color: #DE8F5F;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 760px) {
  .legal-header h1 {
    font-size: 28px;
  }
  .legal-content {
    padding: 36px 0 56px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
  .legal-content h2 {
    font-size: 23px;
  }
}
