/* ==========================================================================
   PANCHALS & CO - DESIGN SYSTEM & STYLESHEET
   Inspired by fitt.co architecture featured on One Page Love
   Color Palette: Executive Gold & Amber (#E5C07B) + Off-Black (#1A1A1A) + Warm Cream (#FFFCF4)
   ========================================================================== */

:root {
  --bg-dark: #1A1A1A;
  --bg-dark-card: #222222;
  --bg-light: #FFFCF4;
  --bg-white: #ffffff;
  --text-dark: #1A1A1A;
  --text-light: #FFFCF4;
  --accent: #E5C07B; /* Brushed Champagne Gold */
  --accent-hover: #D8AD5E;
  --accent-soft: rgba(229, 192, 123, 0.15);
  --border-color: #1A1A1A;
  --border-subtle: rgba(26, 26, 26, 0.12);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 75px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img, svg {
  display: block;
}

/* Utility Flex Layout */
.flex {
  display: flex;
  flex-wrap: wrap;
}

.v-center {
  align-items: center;
}

.v-start {
  align-items: flex-start;
}

.h-center {
  justify-content: center;
}

.h-end {
  justify-content: flex-end;
}

/* Container */
.main-site-container {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

/* Column Widths (1/3 and 2/3 asymmetric splits) */
.one-third {
  width: 31%;
  margin-right: 3.5%;
}

.two-thirds {
  width: 65.5%;
}

.one-half {
  width: calc(50% - 10px);
}

.full {
  width: 100%;
}

/* Color Modifiers */
.off-black {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.yellow {
  background-color: var(--accent);
  color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, .brico {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-size: 3.25rem; /* 52px */
  letter-spacing: -0.025em;
}

h2 {
  font-size: 3.25rem; /* 52px */
  letter-spacing: -0.02em;
}

h2.center {
  text-align: center;
}

h3 {
  font-size: 2.125rem; /* 34px */
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3.small-h3 {
  font-size: 1.75rem; /* 28px */
}

/* Section Headings with Signature Bottom Divider */
.main-h2 {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 45px;
}

.main-section {
  padding: 100px 0;
  position: relative;
}

.main-section.companies,
.main-section.products {
  padding: 75px 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.the-header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1005;
  height: var(--header-height);
  background-color: rgba(255, 252, 244, 0);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.the-header-container .main-site-container {
  height: 100%;
  justify-content: space-between;
}

.brand-logo {
  cursor: pointer;
  z-index: 1001;
  text-decoration: none;
}

.logo-wrapper {
  gap: 12px;
}

.logo-emblem {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.logo-banner {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  height: 20px;
}

.logo-divider.logo-white {
  background-color: rgba(255, 252, 244, 0.25);
}

.logo-divider.logo-black {
  background-color: rgba(26, 26, 26, 0.2);
}

/* Header Logo Toggle on Scroll */
.the-header-container .logo-black {
  display: none !important;
}

.the-header-container .logo-white {
  display: block !important;
}

body.scrolled .the-header-container .logo-black {
  display: block !important;
}

body.scrolled .the-header-container .logo-white {
  display: none !important;
}

/* Hero Monogram Crest & Tagline */
.hero-emblem-badge {
  margin-bottom: 20px;
}

.hero-tagline-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
  opacity: 0.95;
}

.hero-gold-emblem {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(229, 192, 123, 0.25));
  animation: emblemFloat 3.5s ease-in-out infinite;
}

@keyframes emblemFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Footer Logos & Tagline */
.footer-logo {
  gap: 12px;
  text-decoration: none;
}

.footer-logo-emblem {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-logo-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(26, 26, 26, 0.2);
}

.footer-logo-banner {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin-top: -6px;
}

.nav-right {
  position: relative;
}

.main-nav {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-left: 36px;
  position: relative;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, color 0.2s ease;
}

.main-nav::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.main-nav:hover::after {
  width: 100%;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1010;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

/* Scrolled Header State */
body.scrolled .the-header-container {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.scrolled .logo-text,
body.scrolled .logo-text-sub {
  fill: var(--text-dark);
}

body.scrolled .main-nav {
  opacity: 1;
  pointer-events: auto;
}

body.scrolled .mobile-toggle span {
  background-color: var(--text-dark);
}

body.scrolled .down {
  opacity: 0;
  pointer-events: none;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-toggle.active {
  z-index: 1010;
}

.mobile-toggle.active span {
  background-color: var(--text-dark) !important;
}

.mobile-toggle.active span:first-child {
  transform: translateY(11px) rotate(45deg);
}

.mobile-toggle.active span:last-child {
  transform: translateY(-11px) rotate(-45deg);
}

/* Ensure header logo turns dark when mobile drawer is open */
body.menu-open .the-header-container .logo-white {
  display: none !important;
}

body.menu-open .the-header-container .logo-black {
  display: block !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(229, 192, 123, 0.06), transparent 50%), var(--bg-dark);
}

.hero-h1 {
  color: var(--text-light);
}

.hero-copy {
  max-width: 620px;
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  color: rgba(255, 252, 244, 0.85);
  margin-top: 10px;
}

.hero-blurb {
  margin-bottom: 28px;
}

.hero-badges {
  gap: 12px;
}

.hero-stat-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(229, 192, 123, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background-color: rgba(229, 192, 123, 0.05);
}

/* Hero Down Arrow */
.down {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 35px;
  margin: 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(229, 192, 123, 0.4);
  opacity: 1;
  transition: opacity 0.3s ease, border-color 0.25s ease, transform 0.25s ease;
  animation: heroBounce 2.4s infinite ease-in-out;
}

.down:hover {
  border-color: var(--accent);
  transform: translateY(4px);
}

@keyframes heroBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ==========================================================================
   COMPANIES SECTION (SUBSIDIARY & BRAND PROFILES)
   ========================================================================== */

.companies-inner {
  gap: 3.5% 3.5%;
}

.companies-inner .box {
  width: 31%;
  margin-right: 0;
  margin-bottom: 32px;
  padding: 32px 28px 28px;
}

.box {
  border-radius: 21px;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  background-color: transparent;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.box:not(.coming-soon-module):hover {
  transform: translateY(-4px);
  background-color: var(--bg-white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.flagship-card {
  border: 1.5px solid var(--border-color);
  background: linear-gradient(135deg, rgba(229, 192, 123, 0.08) 0%, transparent 60%);
}

.flagship-card:hover {
  border-color: #BFA15C;
}

.top-logo {
  height: 40px;
  margin-bottom: 24px;
  gap: 10px;
}

.sub-brand-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  background-color: rgba(26, 26, 26, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
}

.sub-brand-badge.live-badge {
  background-color: var(--accent);
  color: #1A1A1A;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E5C07B;
  box-shadow: 0 0 0 0 rgba(229, 192, 123, 0.7);
  animation: goldPulse 1.8s infinite;
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 192, 123, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(229, 192, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 192, 123, 0);
  }
}

.box h3 {
  margin-bottom: 12px;
}

.box-blurb {
  font-size: 1rem;
  line-height: 1.55;
  color: #4a4a4a;
  margin-bottom: 32px;
  min-height: 72px;
}

.box-link {
  margin-top: auto;
}

/* Pill CTA Buttons */
.pill-button {
  height: 38px;
  min-width: 154px;
  padding: 0 18px;
  border-radius: 19px;
  border: 1px solid var(--border-color);
  background-color: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.box:not(.coming-soon-module):hover .pill-button {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Coming Soon Module Variant */
.coming-soon-module {
  border-style: dashed;
  opacity: 0.8;
  background-color: rgba(26, 26, 26, 0.02);
}

.top-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #666;
}

.pill-button.not-link {
  background-color: rgba(26, 26, 26, 0.08);
  border-color: #999;
  color: #777;
  cursor: default;
}

/* ==========================================================================
   PRODUCTS & CAPABILITIES SECTION
   ========================================================================== */

.products-inner {
  gap: 3.5% 3.5%;
}

.products-inner .box {
  width: 31%;
  margin-right: 0;
  margin-bottom: 32px;
  padding: 28px 28px 24px;
}

.top-title {
  margin-bottom: 20px;
  gap: 10px;
}

.top-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.top-title-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.arrow-button {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  gap: 12px;
  margin-top: 8px;
}

.arrow-button svg {
  transition: transform 0.25s ease;
}

.box:hover .arrow-button svg {
  transform: translateX(6px);
}

/* ==========================================================================
   PARTNERS SECTION (DUAL ROW INFINITE ROTATOR)
   ========================================================================== */

.partners {
  overflow: hidden;
  padding: 90px 0;
}

.partners h2 {
  color: var(--text-light);
  margin-bottom: 45px;
}

.partner-rotator-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.partner-row {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.track-left {
  animation: scrollLeft 35s linear infinite;
}

.track-right {
  animation: scrollRight 35s linear infinite;
}

.partner-row:hover .partner-track {
  animation-play-state: paused;
}

.partner-block {
  width: 220px;
  height: 75px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 252, 244, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.partner-block:hover {
  background-color: rgba(229, 192, 123, 0.08);
  border-color: var(--accent);
}

.partner-logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 252, 244, 0.7);
  text-transform: uppercase;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
  padding: 130px 0;
}

.about .hero-copy {
  color: var(--text-dark);
  font-size: 1.35rem;
  line-height: 1.65;
  max-width: 100%;
}

.about .p1 {
  margin-bottom: 24px;
  font-weight: 600;
}

.about .p2 {
  font-size: 1.15rem;
  color: #555;
}

/* ==========================================================================
   CONTACT SECTION (EXECUTIVE CHAMPAGNE GOLD ACCENT)
   ========================================================================== */

.yellow {
  padding: 110px 0;
  background-color: var(--accent);
}

.contact-blurb {
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 320px;
}

.direct-contact-item {
  margin-top: 24px;
}

.direct-contact-item .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.direct-contact-item .val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.direct-contact-item .val a {
  text-decoration: underline;
}

/* Form Styles */
.panchal-form .full-form {
  gap: 16px 20px;
}

.panchal-form .full-row {
  width: 100%;
  gap: 20px;
}

.panchal-form input,
.panchal-form select,
.panchal-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panchal-form input:focus,
.panchal-form select:focus,
.panchal-form textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.panchal-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--bg-dark);
  border-radius: 20px;
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.form-feedback {
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}

.form-feedback.success {
  background-color: var(--bg-dark);
  color: var(--accent);
}

.form-feedback.error {
  background-color: #b71c1c;
  color: #fff;
}

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

.site-footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
}

.site-footer .main-site-container {
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  flex-direction: column;
  gap: 16px;
}

.copyright {
  font-size: 0.88rem;
  color: #666;
}

.copyright a {
  text-decoration: underline;
  color: var(--text-dark);
}

.footer-right {
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  gap: 24px;
}

.footer-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-link:hover {
  color: #777;
}

.footer-social {
  gap: 14px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (1050px & 800px)
   ========================================================================== */

@media (max-width: 1050px) {
  .one-third.special,
  .two-thirds.special {
    width: 100%;
    margin-right: 0;
  }

  .one-third.special {
    margin-bottom: 24px;
  }

  .companies-inner .box,
  .products-inner .box {
    width: 48%;
  }

  .site-footer .main-site-container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .footer-left,
  .footer-right,
  .footer-links,
  .footer-social {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  .nav-right {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .companies-inner .box,
  .products-inner .box {
    width: 100%;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .main-section {
    padding: 60px 0;
  }

  .panchal-form .one-half {
    width: 100%;
  }

  .panchal-form .full-row {
    flex-direction: column;
    gap: 16px;
  }

  .box-blurb {
    min-height: unset;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-emblem {
    height: 28px;
  }

  .logo-banner {
    height: 15px;
  }

  .logo-divider {
    height: 16px;
  }
}

/* ==========================================================================
   LEGAL PAGES STYLES (Privacy Policy & Terms of Service)
   ========================================================================== */

.legal-hero {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 160px 0 70px;
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(229, 192, 123, 0.06), transparent 50%), var(--bg-dark);
}

.legal-breadcrumbs {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.legal-breadcrumbs a {
  color: rgba(255, 252, 244, 0.7);
  text-decoration: underline;
}

.legal-breadcrumbs a:hover {
  color: var(--accent);
}

.legal-title {
  font-size: 3.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text-light);
}

.legal-meta {
  font-size: 1rem;
  color: rgba(255, 252, 244, 0.65);
}

.legal-body-section {
  padding: 80px 0 120px;
  background-color: var(--bg-light);
}

.legal-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.legal-sidebar {
  width: 280px;
  position: sticky;
  top: 100px;
  flex-shrink: 0;
  background: rgba(26, 26, 26, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 20px;
}

.legal-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-toc-list a {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
}

.legal-toc-list a:hover {
  color: #1A1A1A;
  font-weight: 600;
  transform: translateX(4px);
}

.legal-content {
  flex: 1;
  max-width: 820px;
}

.legal-highlight-box {
  background-color: rgba(229, 192, 123, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 1.85rem;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dark);
}

.legal-section h3 {
  font-size: 1.25rem;
  margin: 20px 0 10px;
  color: var(--text-dark);
}

.legal-section p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 16px;
}

.legal-section ul, .legal-section ol {
  margin: 14px 0 20px 24px;
  color: #3a3a3a;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
}

.legal-contact-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.legal-contact-card p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.legal-contact-card a {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 950px) {
  .legal-layout {
    flex-direction: column;
  }
  .legal-sidebar {
    display: none;
  }
  .legal-title {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   SCROLL TO TOP FLOATING BUTTON
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 192, 123, 0.45);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  background: var(--accent);
  color: #111111;
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 34px rgba(229, 192, 123, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* Position Customization */
.scroll-to-top.pos-left {
  right: auto;
  left: 32px;
}

/* Shape Customization */
.scroll-to-top.shape-circle {
  border-radius: 50%;
}

.scroll-to-top.shape-square {
  border-radius: 12px;
}

.scroll-to-top.shape-pill {
  width: auto;
  min-width: 90px;
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  gap: 8px;
}

.scroll-to-top .stt-arrow {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.scroll-to-top:hover .stt-arrow {
  transform: translateY(-2px);
}

.scroll-to-top .stt-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .scroll-to-top.pos-left {
    left: 20px;
  }
}

/* ==========================================================================
   DYNAMIC & LEGAL PAGES TYPOGRAPHY & CONTRAST
   ========================================================================== */

.page-rendered-content,
.legal-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2D2D2D !important;
}

.page-rendered-content h1,
.page-rendered-content h2,
.page-rendered-content h3,
.page-rendered-content h4,
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  font-family: var(--font-display);
  color: #141414 !important;
  margin: 36px 0 16px;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.25;
}

.page-rendered-content h1, .legal-content h1 { font-size: 2.25rem; }
.page-rendered-content h2, .legal-content h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; }
.page-rendered-content h3, .legal-content h3 { font-size: 1.35rem; }

.page-rendered-content p, .legal-content p {
  color: #333333 !important;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-rendered-content strong,
.page-rendered-content b,
.legal-content strong,
.legal-content b {
  color: #111111 !important;
  font-weight: 700;
}

.page-rendered-content ul,
.page-rendered-content ol,
.legal-content ul,
.legal-content ol {
  color: #333333 !important;
  margin: 16px 0 24px 28px;
}

.page-rendered-content li, .legal-content li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.page-rendered-content a, .legal-content a {
  color: #9C782F;
  text-decoration: underline;
  font-weight: 600;
}

.page-rendered-content a:hover, .legal-content a:hover {
  color: #141414;
}

.page-rendered-content blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(229, 192, 123, 0.12);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 8px;
  color: #1E1E1E !important;
  font-style: italic;
}

/* Legal & Custom Page Header Navigation Visibility */
body.legal-page .main-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
  color: var(--text-light);
}

body.legal-page.scrolled .main-nav {
  color: var(--text-dark);
}

body.legal-page .the-header-container .logo-white {
  display: block !important;
}

body.legal-page .the-header-container .logo-black {
  display: none !important;
}

body.legal-page.scrolled .the-header-container .logo-white {
  display: none !important;
}

body.legal-page.scrolled .the-header-container .logo-black {
  display: block !important;
}

/* ==========================================================================
   DESKTOP ONLY RESTRICTION MODAL
   ========================================================================== */

.desktop-restrict-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.desktop-restrict-overlay.active {
  opacity: 1;
  visibility: visible;
}

.desktop-restrict-box {
  background: #141414;
  border: 1px solid rgba(229, 192, 123, 0.4);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.restrict-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.desktop-restrict-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #FFF;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.desktop-restrict-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #BBB;
  margin-bottom: 18px;
}

.restrict-badge {
  display: inline-block;
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: #FF6B6B;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.restrict-instruction {
  font-size: 0.88rem !important;
  color: #888 !important;
}

.restrict-instruction code {
  color: var(--accent);
  background: rgba(229, 192, 123, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-dismiss-restrict {
  background: var(--accent);
  color: #111;
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-dismiss-restrict:hover {
  background: #FFF;
  transform: translateY(-2px);
}
