/* ============================================================
   LEGAL STYLESHEET — privacy.html and terms-of-service.html
   Yuill, A Watch Company LLC / YuiilWatch — DARK watchmaker bench
   These pages load ONLY this stylesheet.
   ============================================================ */

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

.legal-page {
  background-color: #14120F;
  color: #F1EDE4;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
  overflow-x: hidden;
}

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

.legal-page a:hover {
  color: #F6F1E4;
}

/* ---------- Legal page header (a header element, solid bg) ---------- */
.legal-header {
  background-color: #1D1915;
  border-bottom: 1px solid #332C22;
}

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

.legal-header .legal-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.legal-brand {
  color: #F6F1E4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.legal-brand:hover {
  color: #C89B4B;
}

.legal-header .legal-tag {
  color: #A9B2B8;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.legal-header h1 {
  color: #F6F1E4;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 400;
}

.legal-header .legal-docdate {
  margin-top: 12px;
  color: #A9B2B8;
  font-size: 14px;
}

/* ---------- Layout ---------- */
.legal-page .legal-wrap {
  display: block;
}

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

.legal-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: block;
}

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #262119;
  border: 1px solid #332C22;
  padding: 24px 30px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  color: #C89B4B;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 22px;
  color: #CFC8BA;
}

.legal-toc li {
  margin: 9px 0;
}

.legal-toc li a {
  color: #B8E6C9;
  text-decoration: none;
}

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

/* ---------- Main legal content ---------- */
.legal-content {
  color: #CFC8BA;
}

.legal-content h2 {
  color: #F6F1E4;
  font-size: 26px;
  margin-top: 44px;
  margin-bottom: 12px;
  scroll-margin-top: 24px;
  font-weight: 400;
  border-bottom: 1px solid #332C22;
  padding-bottom: 8px;
}

.legal-content h3 {
  color: #B8E6C9;
  font-size: 20px;
  margin-top: 26px;
  margin-bottom: 8px;
  font-weight: 400;
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: #CFC8BA;
}

.legal-content li {
  margin: 6px 0;
}

.legal-content strong {
  color: #F1EDE4;
  font-weight: 700;
}

/* ---- scope isolation: never let body sections pick up colors from this
   stylesheet's section styling ---- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #0E0C09;
  border-top: 1px solid #332C22;
  margin-top: 40px;
}

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

.legal-footer p {
  color: #A9B2B8;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.legal-footer .legal-return {
  display: inline-block;
  margin-top: 14px;
  background-color: #C89B4B;
  color: #141210;
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  font-weight: 700;
}

.legal-footer .legal-return:hover {
  background-color: #dcaa5c;
  color: #0d0b09;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 620px) {
  .legal-header h1 {
    font-size: 29px;
  }

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

  .legal-content h3 {
    font-size: 18px;
  }

  .legal-toc {
    padding: 18px 20px;
  }
}
