/* =============================================================
   legal-pages.css
   Shared styles for Privacy Policy, Terms & Conditions,
   and Disclaimer pages — Creative IT Solutions
   ============================================================= */

/* ── CSS Variables (mirrors main.css tokens) ──────────────────── */
:root {
  --primary-blue:    #08A9E8;
  --secondary-blue:  #217ED5;
  --deep-navy:       #071D32;
  --white:           #FFFFFF;
  --light-blue:      #EAF6FD;
  --slate-600:       #475569;
  --slate-500:       #64748b;
  --slate-400:       #94a3b8;
  --slate-200:       #e2e8f0;
  --slate-100:       #f1f5f9;
  --accent-border:   rgba(8, 169, 232, 0.25);
  --hero-overlay:    linear-gradient(135deg, #071D32 0%, #0d2d50 60%, #0f3d6e 100%);
  --section-gap:     2.5rem;
  --radius-md:       0.75rem;
  --radius-sm:       0.5rem;
  --transition:      0.25s ease;
  --header-height:   84px;
}

/* ── Legal Body Base ──────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-600);
  background: #f8fafc;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

/* ── Legal Site Header (Centered & Unclipped) ─────────────────── */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  z-index: 1000;
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.site-header .brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.site-header .brand-logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Legal Hero Banner ────────────────────────────────────────── */
.legal-hero {
  background: var(--hero-overlay);
  padding: calc(var(--header-height) + 36px) 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(8,169,232,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(33,126,213,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.legal-breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.legal-hero-title,
.legal-hero__title {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-hero-subtitle,
.legal-hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.5;
}

/* ── Last Updated Meta ────────────────────────────────────────── */
.legal-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(8, 169, 232, 0.15);
  border: 1px solid rgba(8, 169, 232, 0.3);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  margin: 0 auto;
}

/* ── Legal Content Wrapper & Layout ────────────────────────────── */
.legal-content {
  padding: 50px 24px 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Table of Contents (Sticky on Desktop) ─────────────────────── */
.legal-toc {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(7, 29, 50, 0.04);
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}

.legal-toc-title,
.legal-toc__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--deep-navy);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-100);
}

.legal-toc-list,
.legal-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc-list li,
.legal-toc__list li {
  margin: 0;
  padding: 0;
}

.legal-toc-list a,
.legal-toc__list a {
  font-size: 0.84rem;
  color: var(--slate-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1.35;
}

.legal-toc-list a:hover,
.legal-toc__list a:hover {
  color: var(--secondary-blue);
  background: var(--light-blue);
  padding-left: 12px;
}

/* ── Legal Sections Area ───────────────────────────────────────── */
.legal-body {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 40px 44px;
  box-shadow: 0 4px 20px rgba(7, 29, 50, 0.04);
}

.legal-section {
  margin-bottom: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-bottom: 1px solid var(--slate-200);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0 0 14px;
  line-height: 1.3;
}

.legal-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin: 22px 0 10px;
}

.legal-section p {
  font-size: 0.9625rem;
  color: var(--slate-600);
  margin: 0 0 14px;
  line-height: 1.8;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--deep-navy);
}

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

.legal-section ul li {
  font-size: 0.9625rem;
  color: var(--slate-600);
  line-height: 1.75;
  padding: 5px 0 5px 24px;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: var(--primary-blue);
  border-radius: 50%;
}

.legal-section a {
  color: var(--secondary-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.legal-section a:hover {
  color: var(--primary-blue);
}

/* ── Responsive Styling ────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
  .legal-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }
  .legal-body {
    padding: 30px 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }
  .site-header .brand-logo-img {
    height: 38px;
    max-height: 38px;
  }
  .site-header .btn {
    font-size: 0.775rem !important;
    padding: 8px 14px !important;
  }
  .legal-hero {
    padding: calc(var(--header-height) + 20px) 16px 36px;
  }
  .legal-hero-title,
  .legal-hero__title {
    font-size: 1.65rem;
  }
  .legal-hero-subtitle,
  .legal-hero__subtitle {
    font-size: 0.925rem;
  }
  .legal-content {
    padding: 24px 16px 60px;
  }
  .legal-body {
    padding: 22px 16px;
  }
  .legal-toc {
    padding: 16px;
  }
  .legal-toc-list {
    grid-template-columns: 1fr;
  }
  .legal-section h2 {
    font-size: 1.15rem;
  }
  .legal-section p,
  .legal-section ul li {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}
