/* ==========================================================================
   Hairland.pro Legal Documents Stylesheet (cookie.html & policy.html)
   Scoped strictly to body.legal-page so it NEVER leaks into index.html/b2b.html
   ========================================================================== */

body.legal-page {
  margin: 0;
  padding: 0;
  background-color: #F8F9FA !important;
  color: #1F1E1F !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.legal-page *,
body.legal-page *::before,
body.legal-page *::after {
  box-sizing: border-box;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.legal-page ::selection {
  background-color: #fe9840 !important;
  color: #1f1e1f !important;
}

/* Lucide Icon Sizing & Alignment */
body.legal-page svg.lucide,
body.legal-page i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
body.legal-page .w-3\.5 { width: 0.875rem; height: 0.875rem; }
body.legal-page .h-3\.5 { height: 0.875rem; }
body.legal-page .w-4 { width: 1rem; height: 1rem; }
body.legal-page .h-4 { height: 1rem; }
body.legal-page .w-5 { width: 1.25rem; height: 1.25rem; }
body.legal-page .h-5 { height: 1.25rem; }
body.legal-page .w-6 { width: 1.5rem; height: 1.5rem; }
body.legal-page .h-6 { height: 1.5rem; }
body.legal-page .w-7 { width: 1.75rem; height: 1.75rem; }
body.legal-page .h-7 { height: 1.75rem; }
body.legal-page .w-11 { width: 2.75rem; }
body.legal-page .h-11 { height: 2.75rem; }
body.legal-page .w-12 { width: 3rem; }
body.legal-page .h-12 { height: 3rem; }
body.legal-page .w-14 { width: 3.5rem; }
body.legal-page .h-14 { height: 3.5rem; }

/* Sticky Header Navigation */
body.legal-page header.sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E7EB;
}

body.legal-page header > div {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  body.legal-page header > div {
    height: 5rem;
    padding: 0 1.5rem;
  }
}

/* Header Brand / Logo */
body.legal-page header a.group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

body.legal-page header img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

body.legal-page header a.group:hover img {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  body.legal-page header img {
    height: 2.75rem;
  }
}

/* Header Navigation Links */
body.legal-page header nav,
body.legal-page header .flex.items-center.gap-3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.legal-page header a.px-3\.5,
body.legal-page header a.px-3 {
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Main Document Container */
body.legal-page main {
  flex: 1 1 0%;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  body.legal-page main {
    padding: 3rem 1.5rem;
  }
}

/* Breadcrumbs */
body.legal-page nav.flex.items-center.gap-2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

body.legal-page nav.flex.items-center.gap-2 a {
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.legal-page nav.flex.items-center.gap-2 a:hover {
  color: #1F1E1F;
  text-decoration: underline;
}

/* Document White Card */
body.legal-page article {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  border: 1px solid #E5E7EB;
  box-shadow: 0 20px 25px -5px rgba(31, 30, 31, 0.05), 0 8px 10px -6px rgba(31, 30, 31, 0.05);
  overflow: hidden;
}

/* Document Hero Header */
body.legal-page article > div:first-child {
  padding: 1.5rem;
  border-bottom: 1px solid #F1F3F5;
  background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
}

@media (min-width: 640px) {
  body.legal-page article > div:first-child {
    padding: 2.5rem;
  }
}

body.legal-page article h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1F1E1F;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0.5rem 0 0.5rem 0;
}

@media (min-width: 640px) {
  body.legal-page article h1 {
    font-size: 1.875rem;
  }
}

/* Document Body Content */
body.legal-page article > div:nth-child(2) {
  padding: 1.5rem;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  body.legal-page article > div:nth-child(2) {
    padding: 2.5rem;
  }
}

/* Section Dividers & Headings */
body.legal-page .border-t.border-graphite-100 {
  border-top: 1px solid #F1F3F5;
}

body.legal-page article h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1F1E1F;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
}

@media (min-width: 640px) {
  body.legal-page article h4 {
    font-size: 1rem;
  }
}

/* Sub-item Cards inside Sections */
body.legal-page .p-3\.5,
body.legal-page .p-4 {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.legal-page .rounded-xl {
  border-radius: 0.75rem;
}

body.legal-page .rounded-2xl {
  border-radius: 1rem;
}

body.legal-page .rounded-3xl {
  border-radius: 1.5rem;
}

body.legal-page .rounded-full {
  border-radius: 9999px;
}

/* Document Footer inside Card */
body.legal-page article > div:last-child {
  padding: 1.5rem;
  border-top: 1px solid #F1F3F5;
  background-color: #F8F9FA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  body.legal-page article > div:last-child {
    flex-direction: row;
    padding: 1.5rem 2.5rem;
  }
}

/* Return to site button */
body.legal-page a.bg-brand-orange {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background-color: #fe9840 !important;
  color: #1F1E1F !important;
  font-weight: 900 !important;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(254, 152, 64, 0.2), 0 2px 4px -2px rgba(254, 152, 64, 0.2);
  transition: all 0.2s ease;
}

body.legal-page a.bg-brand-orange:hover {
  filter: brightness(1.05);
}

body.legal-page a.bg-brand-orange:active {
  transform: scale(0.98);
}

/* Global Footer */
body.legal-page footer.bg-graphite-900 {
  background-color: #111827 !important;
  color: #FFFFFF !important;
  padding: 2.5rem 1rem;
  border-top: 1px solid #1F2937;
  margin-top: auto;
}

body.legal-page footer.bg-graphite-900 > div {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9CA3AF;
}

@media (min-width: 640px) {
  body.legal-page footer.bg-graphite-900 > div {
    flex-direction: row;
    padding: 0 1.5rem;
  }
}

body.legal-page footer.bg-graphite-900 a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.legal-page footer.bg-graphite-900 a:hover {
  color: #FFFFFF;
}

body.legal-page footer.bg-graphite-900 a.text-brand-orange {
  color: #fe9840 !important;
}

/* Colors & Utility Replacements */
body.legal-page .bg-brand-peach { background-color: #fff3e0 !important; }
body.legal-page .bg-brand-mint { background-color: #e0f2f1 !important; }
body.legal-page .bg-brand-orange { background-color: #fe9840 !important; }
body.legal-page .bg-graphite-50 { background-color: #F8F9FA !important; }
body.legal-page .bg-graphite-100 { background-color: #F1F3F5 !important; }
body.legal-page .bg-graphite-200 { background-color: #E5E7EB !important; }
body.legal-page .bg-white { background-color: #FFFFFF !important; }

body.legal-page .text-brand-dark { color: #1F1E1F !important; }
body.legal-page .text-brand-slate { color: #475569 !important; }
body.legal-page .text-brand-orange { color: #fe9840 !important; }
body.legal-page .text-brand-teal { color: #159197 !important; }
body.legal-page .text-graphite-300 { color: #D1D5DB !important; }
body.legal-page .text-graphite-400 { color: #9CA3AF !important; }
body.legal-page .text-graphite-500 { color: #6B7280 !important; }

body.legal-page .border-graphite-100 { border-color: #F1F3F5 !important; }
body.legal-page .border-graphite-200 { border-color: #E5E7EB !important; }
body.legal-page .border-brand-orange\/30 { border-color: rgba(254, 152, 64, 0.3) !important; }
body.legal-page .border-brand-teal\/30 { border-color: rgba(21, 145, 151, 0.3) !important; }

/* Flexbox & Grid helpers */
body.legal-page .flex { display: flex; }
body.legal-page .inline-flex { display: inline-flex; }
body.legal-page .flex-col { flex-direction: column; }
body.legal-page .flex-row { flex-direction: row; }
body.legal-page .flex-wrap { flex-wrap: wrap; }
body.legal-page .items-center { align-items: center; }
body.legal-page .items-start { align-items: flex-start; }
body.legal-page .justify-between { justify-content: space-between; }
body.legal-page .justify-center { justify-content: center; }
body.legal-page .shrink-0 { flex-shrink: 0; }
body.legal-page .w-full { width: 100%; }

/* Spacing helpers */
body.legal-page .gap-1 { gap: 0.25rem; }
body.legal-page .gap-1\.5 { gap: 0.375rem; }
body.legal-page .gap-2 { gap: 0.5rem; }
body.legal-page .gap-2\.5 { gap: 0.625rem; }
body.legal-page .gap-3 { gap: 0.75rem; }
body.legal-page .gap-4 { gap: 1rem; }
body.legal-page .space-y-1 > * + * { margin-top: 0.25rem; }
body.legal-page .space-y-2 > * + * { margin-top: 0.5rem; }
body.legal-page .space-y-2\.5 > * + * { margin-top: 0.625rem; }
body.legal-page .space-y-3 > * + * { margin-top: 0.75rem; }
body.legal-page .space-y-6 > * + * { margin-top: 1.5rem; }

body.legal-page .pl-8 { padding-left: 2rem; }
@media (max-width: 639px) {
  body.legal-page .pl-8 { padding-left: 0.75rem; }
  body.legal-page .hidden.md\:flex,
  body.legal-page .hidden.sm\:flex { display: none !important; }
}

@media (min-width: 768px) {
  body.legal-page .md\:flex { display: flex !important; }
}
