/* =====================================================================
   PeakScreen Mobile Testing LLC - shared legal stylesheet
   Used by privacy.html and terms-of-service.html ONLY.
   Legal pages load this file and nothing else, so it defines its own
   page background and text colors with strong contrast.
   Palette:
     bench paper ....... #EEE5EC
     counter ink ....... #42403A
     qc pass green ..... #377A4C
     tray navy ......... #2A2F4A
     slip yellow ....... #E3D089
   All colors solid hex. No rgba. No opacity decimals. No text gradients.
   ===================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #EEE5EC;
  color: #42403A;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #2A2F4A;
  line-height: 1.25;
  margin: 0 0 0.5em 0;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: #377A4C;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* ------------------------------- header ---------------------------- */

.legal-header {
  background-color: #2A2F4A;
  border-bottom: 6px solid #377A4C;
  padding: 28px 0;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header h1 {
  color: #EEE5EC;
  font-size: 1.9rem;
  margin-bottom: 0.25em;
}

.legal-header p {
  color: #E3D089;
  margin: 0;
  font-size: 0.96rem;
}

.legal-header a {
  color: #E3D089;
}

.legal-header a:hover,
.legal-header a:focus {
  color: #EEE5EC;
}

/* ------------------------------ layout ----------------------------- */

.legal-main {
  padding: 44px 0 64px 0;
}

.legal-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* table of contents */

.legal-toc {
  background-color: #E3D089;
  border-left: 8px solid #377A4C;
  border-radius: 4px;
  padding: 22px 26px;
  margin-bottom: 38px;
}

.legal-toc h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6em;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  column-count: 2;
  column-gap: 32px;
}

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

.legal-toc a {
  color: #2A2F4A;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: #377A4C;
  text-decoration: underline;
}

/* content scope isolation: keep sections transparent so the page
   background and text colors above always win inside legal pages. */

.legal-content section {
  background-color: transparent !important;
  color: #42403A;
}

.legal-content {
  background-color: #EEE5EC;
  color: #42403A;
}

.legal-content h2 {
  font-size: 1.42rem;
  margin-top: 1.7em;
  padding-bottom: 0.24em;
  border-bottom: 3px solid #377A4C;
}

.legal-content h3 {
  font-size: 1.12rem;
  margin-top: 1.2em;
  color: #377A4C;
}

.legal-content p {
  color: #42403A;
}

.legal-content ul,
.legal-content ol {
  color: #42403A;
  padding-left: 24px;
  margin: 0 0 1em 0;
}

.legal-content li {
  margin-bottom: 0.5em;
}

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

.legal-content a {
  color: #377A4C;
  font-weight: 700;
}

.legal-content a:hover,
.legal-content a:focus {
  text-decoration: underline;
}

/* small info plate used for the company identity block */

.legal-plate {
  background-color: #E3D089;
  border: 3px solid #2A2F4A;
  border-top: 8px solid #377A4C;
  border-radius: 4px;
  padding: 22px 24px;
  margin: 0 0 34px 0;
}

.legal-plate p {
  margin: 0 0 0.5em 0;
  color: #42403A;
}

.legal-plate p:last-child {
  margin-bottom: 0;
}

/* back to home link */

.legal-back {
  display: inline-block;
  margin-top: 8px;
  background-color: #377A4C;
  color: #F4F0E4;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 3px;
}

.legal-back:hover,
.legal-back:focus {
  background-color: #2C6340;
  color: #F4F0E4;
  text-decoration: none;
}

/* ------------------------------- footer ---------------------------- */

.legal-footer {
  background-color: #2A2F4A;
  color: #EEE5EC;
  border-top: 6px solid #377A4C;
  padding: 30px 0;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.92rem;
}

.legal-footer a {
  color: #E3D089;
}

.legal-footer a:hover,
.legal-footer a:focus {
  color: #EEE5EC;
  text-decoration: underline;
}

.legal-footer p {
  margin: 0 0 0.5em 0;
}

.legal-footer p:last-child {
  margin-bottom: 0;
}

/* ----------------------------- responsive -------------------------- */

@media (max-width: 640px) {
  .legal-header h1 { font-size: 1.5rem; }
  .legal-toc ol { column-count: 1; }
  .legal-content h2 { font-size: 1.24rem; }
}
