/* ============================================================
   Legal pages stylesheet — Privacy Policy and Terms of Service
   Loaded ONLY by privacy.html and terms-of-service.html
   Palette: Cream White #FAF6F0 · Race Orange #E8722E
            Light Apricot #F5D9C2 · Deep Charcoal #2A2420
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2A2420;
  background-color: #FAF6F0;
  overflow-x: hidden;
}

a {
  color: #E8722E;
  text-decoration: none;
}

a:hover {
  color: #B9530F;
}

.legal-page {
  background-color: #FAF6F0;
}

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

/* ---------- Legal page header ---------- */

.legal-header {
  background-color: #E8722E;
  border-bottom: 4px solid #2A2420;
  padding: 64px 0 56px;
}

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

.legal-header .legal-brand {
  display: inline-block;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: #2A2420;
  background-color: #F5D9C2;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.legal-header .legal-header-inner:hover .legal-brand {
  background-color: #2A2420;
  color: #FAF6F0;
}

.legal-header .legal-page-label {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2A2420;
  margin-bottom: 10px;
}

.legal-header h1 {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
  color: #2A2420;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.legal-header .legal-updated {
  font-size: 15px;
  font-weight: 600;
  color: #2A2420;
}

/* ---------- Scope isolation ---------- */

.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Table of contents ---------- */

.legal-toc {
  background-color: #F5D9C2;
  border-left: 4px solid #E8722E;
  border-radius: 12px;
  padding: 26px 28px;
  margin: 48px 0 40px;
}

.legal-toc h2 {
  font-size: 20px;
  font-weight: 800;
  color: #2A2420;
  margin-bottom: 14px;
}

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

.legal-toc ol li {
  counter-increment: toc-counter;
  padding: 7px 0;
}

.legal-toc ol li::before {
  content: counter(toc-counter) ".";
  font-weight: 800;
  color: #E8722E;
  margin-right: 10px;
}

.legal-toc a {
  color: #2A2420;
  font-weight: 600;
}

.legal-toc a:hover {
  color: #B9530F;
}

/* ---------- Content sections ---------- */

.legal-content {
  padding-bottom: 72px;
}

.legal-content .legal-section {
  padding: 36px 0;
  border-top: 2px solid #E8722E;
}

.legal-content .legal-section h2 {
  font-size: 27px;
  font-weight: 800;
  color: #2A2420;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.legal-content .legal-section h3 {
  font-size: 19px;
  font-weight: 800;
  color: #2A2420;
  margin: 22px 0 8px;
}

.legal-content .legal-section p {
  font-size: 16px;
  color: #2A2420;
  margin-bottom: 14px;
}

.legal-content .legal-section ul {
  list-style: none;
  margin: 0 0 16px;
}

.legal-content .legal-section ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 16px;
  color: #2A2420;
}

.legal-content .legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 12px;
  height: 12px;
  border: 3px solid #E8722E;
  border-radius: 50%;
  background-color: #FAF6F0;
}

.legal-content .legal-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content .legal-section ol li {
  padding: 6px 0;
  font-size: 16px;
  color: #2A2420;
}

.legal-content .legal-section strong {
  font-weight: 800;
  color: #2A2420;
}

.legal-content .legal-note {
  background-color: #F5D9C2;
  border-left: 4px solid #E8722E;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 16px;
  color: #2A2420;
}

/* ---------- Back to top ---------- */

.back-top {
  display: inline-block;
  background-color: #E8722E;
  color: #2A2420;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  margin-top: 20px;
}

.back-top:hover {
  background-color: #2A2420;
  color: #FAF6F0;
}

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

.legal-footer {
  background-color: #E8722E;
  border-top: 4px solid #2A2420;
  padding: 28px 0;
}

.legal-footer .legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.legal-footer p {
  font-size: 14.5px;
  font-weight: 600;
  color: #2A2420;
}

.legal-footer a {
  font-weight: 700;
  color: #2A2420;
}

.legal-footer a:hover {
  color: #FAF6F0;
}

@media (max-width: 620px) {
  .legal-header {
    padding: 44px 0 40px;
  }

  .legal-header h1 {
    font-size: 34px;
  }
}
