/* ========================================================
   assets/css/legal.css - SAH GROWTH GROUP LEGAL PAGES
   Privacy Policy & Terms & Conditions Stylesheet
   Luxury Aesthetic: White, Ivory, Regal Gold & Obsidian
   Strict 50px Section Padding & High-Readability UI
   ======================================================== */

:root {
  --legal-black: #0E0F16;
  --legal-dark: #161722;
  --legal-white: #FFFFFF;
  --legal-offwhite: #FAF8F5;
  --legal-ivory: #F5F2EB;
  --legal-gold: #D4AF37;
  --legal-gold-light: #ECC880;
  --legal-gold-bright: #F7E5B5;
  --legal-gold-dark: #B88924;
  --legal-gold-gradient: linear-gradient(135deg, #ECC880 0%, #D4AF37 50%, #B88924 100%);
  --legal-text: #2C2C35;
  --legal-text-muted: #555562;
  --legal-border: #E6E1D6;
  --legal-card-shadow: 0 6px 25px rgba(20, 20, 30, 0.05);
}

.legal-page-wrap {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: var(--legal-text);
  background-color: var(--legal-offwhite);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ========================================================
   1. CINEMATIC HERO SECTION (Matching About & Contact Hero)
   ======================================================== */
.legal-hero-section {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 60px;
  overflow: hidden;
  background-color: #0A0A0E;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.legal-hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.legal-hero-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.48) contrast(1.15) saturate(1.1);
}

.legal-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    radial-gradient(circle at center, rgba(10, 10, 14, 0.5) 0%, rgba(10, 10, 14, 0.82) 70%, rgba(10, 10, 14, 0.95) 100%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.72) 0%, transparent 50%, rgba(8, 8, 12, 0.88) 100%);
}

.legal-hero-center {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.legal-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #ECEAE4;
  margin-bottom: 14px;
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(8px);
  padding: 5px 18px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.legal-hero-breadcrumb a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.25s ease;
}

.legal-hero-breadcrumb a:hover {
  color: var(--legal-gold-light);
}

.legal-prestige-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--legal-gold-bright);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.legal-prestige-eyebrow .star {
  color: var(--legal-gold);
  font-size: 13px;
}

.legal-hero-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin-bottom: 16px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
}

.legal-hero-main-title span {
  background: var(--legal-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.35));
}

.legal-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 16px;
  max-width: 320px;
}

.legal-hero-divider .line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--legal-gold), transparent);
}

.legal-hero-divider .diamond {
  color: var(--legal-gold);
  font-size: 16px;
  display: inline-flex;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
}

.legal-hero-subtag {
  font-size: clamp(12.5px, 1.5vw, 15px);
  color: #ECEAE4;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ========================================================
   2. CONTENT LAYOUT (Strictly 50px Padding)
   ======================================================== */
.legal-main-area {
  padding: 50px 0;
}

.legal-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Intro Box */
.legal-intro-box {
  background: #FFFFFF;
  border-left: 4px solid var(--legal-gold);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--legal-card-shadow);
  border-top: 1px solid var(--legal-border);
  border-right: 1px solid var(--legal-border);
  border-bottom: 1px solid var(--legal-border);
}

.legal-intro-box p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--legal-text);
  margin-bottom: 0;
}

.legal-intro-box strong {
  color: #0E0F16;
}

/* Quick Nav Pill Links */
.legal-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--legal-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.legal-quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--legal-offwhite);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--legal-text);
  text-decoration: none;
  transition: all 0.25s ease;
}

.legal-quick-nav a:hover {
  background: var(--legal-gold);
  color: #0A0A0E;
  border-color: var(--legal-gold);
  transform: translateY(-2px);
}

/* Sections */
.policy-section,
.term-section {
  position: relative;
  padding: 32px 30px 28px 38px;
  margin-bottom: 18px;
  background: var(--legal-white);
  border: 1px solid var(--legal-border);
  border-radius: 14px;
  box-shadow: var(--legal-card-shadow);
  scroll-margin-top: 105px;
  transition: all 0.25s ease;
}

.policy-section:hover,
.term-section:hover {
  border-color: var(--legal-gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
}

/* Diamond pin on the left */
.policy-section::before,
.term-section::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 38px;
  width: 9px;
  height: 9px;
  background: var(--legal-gold);
  border: 2px solid var(--legal-white);
  outline: 1px solid var(--legal-gold);
  transform: rotate(45deg);
}

.policy-section h2,
.term-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--legal-black);
  font-size: clamp(21px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.term-section h2::before {
  content: counter(terms-section) ". ";
}

.terms-content-wrap {
  counter-reset: terms-section;
}

.term-section {
  counter-increment: terms-section;
}

.section-number {
  display: none;
}

.policy-section p,
.term-section p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--legal-text);
  margin-bottom: 12px;
  text-align: justify;
}

.policy-section p:last-child,
.term-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul,
.term-section ul {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.policy-section li,
.term-section li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--legal-text);
}

.policy-section li::before,
.term-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--legal-gold);
  transform: rotate(45deg);
}

/* Contact / Notice Card */
.legal-contact-card,
.contact-card,
.notice {
  background: linear-gradient(145deg, #161722 0%, #0E0E15 100%);
  color: #FFFFFF;
  padding: 30px 32px;
  margin-top: 24px;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.legal-contact-card::before,
.contact-card::before,
.notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--legal-gold-gradient);
}

.legal-contact-card h3,
.contact-card h3,
.notice h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--legal-gold-bright);
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 700;
}

.legal-contact-row,
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 12px 0;
}

.legal-contact-row i,
.contact-row i {
  color: var(--legal-gold);
  font-size: 16px;
  margin-top: 4px;
  width: 20px;
  flex-shrink: 0;
}

.legal-contact-row p,
.contact-row p,
.notice p {
  color: #ECEAE4;
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
  text-align: left;
}

.legal-contact-row a,
.contact-row a,
.notice a {
  color: var(--legal-gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-contact-row a:hover,
.contact-row a:hover,
.notice a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.notice strong {
  color: var(--legal-gold-light);
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 768px) {
  .legal-hero-section {
    min-height: 340px;
    padding: 85px 0 45px;
  }

  .legal-hero-main-title {
    font-size: 32px;
  }

  .legal-main-area {
    padding: 40px 0;
  }

  .policy-section,
  .term-section {
    padding: 24px 20px 22px 30px;
  }

  .policy-section::before,
  .term-section::before {
    left: 14px;
    top: 30px;
  }

  .legal-intro-box {
    padding: 18px 20px;
  }

  .legal-contact-card,
  .contact-card,
  .notice {
    padding: 24px 20px;
  }
}
