/* ============================================================
   HBG DESIGN — Legal Pages Stylesheet (Privacy + Terms)
   Light theme · Raspberry-rose accent
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

:root {
  --ink: #2A1B22;
  --ink-soft: #4A303A;
  --muted: #6E5560;
  --paper: #FBF6F7;
  --paper-deep: #F5ECEF;
  --white: #FFFFFF;
  --raspberry: #D6336C;
  --raspberry-dark: #B02558;
  --raspberry-deep: #8E1E46;
  --gold: #D9A441;
  --blush: #FBEAF0;
  --blush-deep: #F6D9E4;
  --gray-rule: #E3D9DE;
}

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #FBF6F7;
  color: #2A1B22;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Scope isolation: legal page body sections never inherit
   dark/section backgrounds from the main site stylesheet. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

a:hover {
  color: #8E1E46;
  text-decoration: underline;
}

/* ---------- Legal header (div/header, solid background) ---------- */

.legal-header {
  background: #2A1B22;
  border-bottom: 4px solid #D6336C;
}

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

.legal-brand {
  font-size: 24px;
  font-weight: 800;
  color: #FBEAF0;
  letter-spacing: 0.01em;
}

.legal-brand:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legal-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #F6D9E4;
  padding: 6px 13px;
  border-radius: 999px;
}

.legal-nav a:hover {
  color: #FFFFFF;
  background-color: #B02558;
  text-decoration: none;
}

/* ---------- Legal title banner ---------- */

.legal-title {
  background: linear-gradient(120deg, #B02558 0%, #D6336C 55%, #D9A441 130%);
  padding: 64px 0;
}

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

.legal-title h1 {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.legal-title .legal-updated {
  font-size: 15px;
  font-weight: 600;
  color: #FBEAF0;
}

/* ---------- Legal content ---------- */

.legal-content {
  padding: 56px 0 72px;
}

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

.legal-intro {
  font-size: 18px;
  line-height: 1.75;
  color: #4A303A;
  margin-bottom: 36px;
}

/* Table of contents */

.toc {
  background-color: #FBEAF0;
  border: 1px solid #F6D9E4;
  border-left: 4px solid #D6336C;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 44px;
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8E1E46;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
}

.toc ol li a {
  font-size: 14.5px;
  font-weight: 500;
  color: #4A303A;
  display: inline-block;
  padding: 4px 0;
}

.toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  color: #B02558;
  margin-right: 10px;
  font-size: 12.5px;
}

.toc ol li a:hover {
  color: #B02558;
}

/* Section headings */

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #B02558;
  line-height: 1.3;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 1px solid #E3D9DE;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2A1B22;
  margin: 24px 0 10px;
}

.legal-content p {
  font-size: 16px;
  color: #4A303A;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 18px 0;
  padding-left: 24px;
}

.legal-content ul li {
  font-size: 16px;
  color: #4A303A;
  margin-bottom: 8px;
}

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

.legal-content a {
  text-decoration: underline;
}

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

.legal-footer {
  background-color: #2A1B22;
  padding: 30px 0;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}

.legal-footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: #F6D9E4;
  text-decoration: none;
}

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

.legal-footer p {
  font-size: 13.5px;
  color: #B9A6AE;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-title {
    padding: 48px 0;
  }

  .legal-content {
    padding: 40px 0 56px;
  }
}
