/* ==========================================================
   JONEWORLD LEGAL SHEET — loads ONLY with privacy & terms
   Pages: privacy.html and terms-of-service.html
   Strong contrast: Sorting Hall Cream + Ink Navy + Cobalt Ink
   ========================================================== */

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

body {
  font-size: 16px;
  line-height: 1.7;
  color: #232733;
  background-color: #F7F4EB;
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { font-family: "Trebuchet MS", Segoe UI, Verdana, sans-serif; }
}

a { color: #2B4FB8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong, b { color: #232733; }

/* Header — solid band, strong h1 contrast */
.legal-header {
  background-color: #2E3140;
  position: relative;
}
.legal-header .bar {
  height: 8px;
  width: 100%;
  background:
    repeating-linear-gradient(135deg, #2B4FB8 0 16px, #B5443C 16px 32px);
}
.legal-header .header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.legal-header .brandplate {
  display: inline-block;
  background-color: #2B4FB8;
  color: #F7F4EB;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
}
.legal-header .brandplate:hover { text-decoration: none; color: #F7F4EB; }
.legal-header .homeback {
  color: #d9dbe0;
  font-weight: 700;
}
.legal-header .homeback:hover { color: #F7F4EB; text-decoration: underline; }

/* Title band inside a solid enamel card so nothing floats */
.legal-hero { background-color: #E9DFC8; }
.legal-hero .hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 26px;
  padding-bottom: 30px;
}
.legal-hero h1 {
  color: #232733;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  padding-bottom: 8px;
  position: relative;
}
.legal-hero h1:after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 12px;
  background:
    repeating-linear-gradient(135deg, #2B4FB8 0 12px, #B5443C 12px 24px);
  border-radius: 2px;
}
.legal-hero .fineprint {
  margin-top: 12px;
  color: #3a3f52;
  font-size: 0.95rem;
}
.legal-hero .fineprint b { color: #2B4FB8; }

/* Page wrapper — soft card with cream fill on a cream hall floor */
.legal-page { background-color: #F7F4EB; }

/* Scope isolation — legal pages load ONLY legal.css, so content that
   might otherwise inherit page styling is contained here with a fully
   transparent backdrop and self-owned colors for strong contrast. */
.legal-page .legal-content section {
  background-color: transparent !important;
  background: transparent !important;
  color: #2b2e3b;
  border: none;
  box-shadow: none;
}

.legal-page .legal-content {
  margin: 0 auto;
}
.legal-page .legal-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 64px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-page .legal-shell { grid-template-columns: 1fr; }
}

/* Table of contents */
.legal-page .toc {
  position: sticky;
  top: 16px;
  background-color: #E9DFC8;
  border: 1px solid #d2c6a7;
  border-left: 6px solid #2B4FB8;
  border-radius: 4px;
  padding: 20px;
}
.legal-page .toc h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #232733;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border-bottom: 1px solid #c9bfa4;
  padding-bottom: 8px;
}
.legal-page .toc ol { list-style: none; padding-left: 0; margin: 0; }
.legal-page .toc li { margin-bottom: 5px; font-size: 0.9rem; }
.legal-page .toc a { color: #2B4FB8; font-weight: 600; }
.legal-page .toc a:hover { text-decoration: underline; }

/* scope isolation: only content sections styled here */
.legal-page .legal-content section {
  margin-top: 0;
  margin-bottom: 30px;
}
.legal-page .legal-content section h2#sa {
  margin: 0;
}

/* generic defensive rule nudged inside shell */
.legal-page .legal-shell section.legal-block {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.legal-page .legal-shell section.legal-block .head {
  background-color: transparent;
}
.legal-page .legal-shell section.legal-block h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #232733;
  font-size: 1.4rem;
  margin: 0 0 6px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-page .legal-shell section.legal-block h2 .numbadge {
  flex: 0 0 auto;
  color: #2B4FB8;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.legal-page .legal-shell section.legal-block h2:after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #c9bfa4;
}
.legal-page .legal-shell section.legal-block p {
  margin: 0 0 12px 0;
  color: #2b2e3b;
  max-width: 72ch;
}
.legal-page .legal-shell section.legal-block p:last-child { margin-bottom: 0; }
.legal-page .legal-shell section.legal-block ul,
.legal-page .legal-shell section.legal-block ol {
  margin: 0 0 12px 1.2rem;
  color: #2b2e3b;
}
.legal-page .legal-shell section.legal-block li { margin-bottom: 6px; }

/* Notice cards spanning text width */
.legal-page .legal-content .notice {
  background-color: #E9DFC8;
  border-left: 6px solid #2B4FB8;
  padding: 14px 16px;
  border-radius: 0 3px 3px 0;
  margin: 14px 0;
  color: #2b2e3b;
}
.legal-page .legal-content .notice.warn { border-left-color: #B5443C; }
.legal-page .legal-content .contactblock {
  background-color: #E9DFC8;
  border: 1px solid #d2c6a7;
  border-radius: 4px;
  padding: 18px 20px;
  margin-top: 18px;
}
.legal-page .legal-content .contactblock p { margin-bottom: 6px; }
.legal-page .legal-content .contactblock b { color: #2B4FB8; }

/* Footer of legal pages linking home */
.legal-footer {
  background-color: #2E3140;
}
.legal-footer .footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.legal-footer .motto {
  color: #F7F4EB;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal-footer .links a {
  color: #d9dbe0;
  font-weight: 700;
  margin-left: 18px;
}
.legal-footer .links a:hover { color: #F7F4EB; text-decoration: underline; }
.legal-footer .flabel { color: #8A8D96; }

@media (max-width: 640px) {
  .legal-footer .links a { display: block; margin-left: 0; margin-top: 8px; }
}
