/* ============================================================
   Yug Enterprises Inc. — legal pages stylesheet
   Privacy Policy · Terms of Service
   Light warm cream theme · clay-terracotta accents
   ============================================================ */

:root {
  --cream: #FAF5EF;
  --ink: #2A221B;
  --clay: #A9623E;
  --clay-deep: #8F4E2F;
  --sand: #EAD9C8;
  --pale-clay: #F0DCCB;
  --white: #FFFFFF;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clay);
  text-decoration: none;
}

a:hover {
  color: var(--clay-deep);
}

/* ============================================================
   LEGAL HEADER (solid cream band, strong h1 contrast)
   ============================================================ */

.legal-header {
  background-color: var(--cream);
  border-bottom: 3px solid var(--clay);
}

.legal-header-top {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-brand-square {
  width: 20px;
  height: 20px;
  background-color: var(--clay);
  border-radius: 3px;
  flex-shrink: 0;
}

.legal-brand-name {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.legal-brand-name small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.legal-home {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--clay);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-home:hover {
  background-color: var(--clay);
  color: var(--white);
}

.legal-header-title {
  max-width: 880px;
  margin: 0 auto;
  padding: 34px 24px 40px;
}

.legal-header-title h1 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 15px;
  color: var(--ink);
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.legal-content .toc {
  margin-bottom: 48px;
  padding: 28px 24px;
  background-color: var(--sand);
  border-left: 6px solid var(--clay);
  border-radius: 6px;
}

.toc-title {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin-bottom: 8px;
}

.toc li::before {
  content: "[ " counter(toc) " ]";
  counter-increment: toc;
  color: var(--clay);
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 13px;
  margin-right: 10px;
}

.toc a {
  font-size: 15px;
  color: var(--ink);
}

.toc a:hover {
  color: var(--clay);
}

/* scope isolation: content sections never inherit band colors */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  max-width: 880px;
  margin: 0 auto 44px;
  padding: 0 0 44px;
  border-bottom: 1px solid var(--clay);
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--clay);
  margin-bottom: 14px;
}

.legal-content h3 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 14px;
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 24px;
  color: var(--ink);
}

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

.legal-inline-link {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay);
  border: 2px solid var(--clay);
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  margin-top: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-inline-link:hover {
  background-color: var(--clay);
  color: var(--white);
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: var(--cream);
  border-top: 3px solid var(--clay);
}

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

.legal-footer p {
  font-size: 13px;
  color: var(--ink);
}

.legal-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--clay);
}

.legal-footer a:hover {
  color: var(--clay);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .legal-header-title h1 {
    font-size: 32px;
  }

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

  .legal-content .toc {
    padding: 22px;
  }
}
