/* =============================================================
   Kiyoi LLC — shared legal stylesheet for legal pages.
   These pages load ONLY legal.css, so every needed rule lives
   below with a strong-contrast light theme and no glyph quotes.
   Scope: these rules apply only to elements marked legal-page.
   ============================================================= */

html {
  scroll-behavior: smooth;
}

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

* {
  box-sizing: border-box;
}

a {
  color: #8E5A6E;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background-color: #8E5A6E;
  color: #FBF8F2;
}

/* -------------------------------------------------------------
   Header — solid band with strong h1 contrast
   ------------------------------------------------------------- */
.legal-header {
  display: block;
  background-color: #2C3530;
  padding: 22px 24px 30px;
  margin-bottom: 28px;
  text-align: center;
}

.legal-home {
  display: inline-block;
  color: #C9B27F;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
}

.legal-home:hover {
  color: #EDE6DB;
  text-decoration: none;
}

.legal-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C9B27F;
  margin: 14px 0 6px;
}

.legal-titles h1 {
  font-family: Georgia, serif;
  font-size: 40px;
  color: #FBF8F2;
  margin: 0;
}

.legal-sub {
  color: #EDE6DB;
  margin-top: 6px;
  font-size: 14px;
}

/* -------------------------------------------------------------
   Table of contents
   ------------------------------------------------------------- */
.legal-toc {
  background-color: #EDE6DB;
  border: 1px solid #A79E90;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-toc > p {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8E5A6E;
  margin: 20px 0 12px;
}

.legal-toc ol {
  margin: 0 0 20px;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

.legal-toc li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.legal-toc a {
  font-size: 15px;
  color: #33302B;
}

.legal-toc a:hover {
  color: #8E5A6E;
  text-decoration: none;
}

/* -------------------------------------------------------------
   Layout container with centered column
   ------------------------------------------------------------- */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  background-color: #F6F1EA;
}

/* -------------------------------------------------------------
   SCOPE-ISOLATED content rule.
   Only the main legal articles are styled; anything else keeps
   transparent so no stray fill leaks from a shared stylesheet.
   ------------------------------------------------------------- */
.legal-page .legal-content section {
  background-color: transparent !important;
  padding: 18px 0 26px;
}

.legal-page .legal-content section h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #33302B;
  border-left: 6px solid #8E5A6E;
  padding-left: 16px;
  margin: 26px 0 14px;
  line-height: 1.3;
}

.legal-page .legal-content p {
  color: #33302B;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
}

.legal-page .legal-content a {
  color: #8E5A6E;
  font-weight: 700;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.legal-footer {
  background-color: #2C3530;
  margin-top: 30px;
  padding: 34px 24px 26px;
  text-align: center;
}

.legal-company {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: #FBF8F2;
  margin: 0 0 10px;
  font-weight: 700;
}

.legal-contact {
  margin: 0 0 12px;
}

.legal-contact a {
  color: #C9B27F;
  font-weight: 700;
  margin: 0 6px;
}

.legal-contact a:hover {
  color: #FBF8F2;
  text-decoration: none;
}

.legal-copy {
  color: #EDE6DB;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 0;
}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-titles h1 {
    font-size: 30px;
  }
}
