/* ============================================================
   legal.css — Shared styles for Terms & Privacy pages
   GDF Technologies | gdftechnologies.in
   ============================================================ */

/* ============ READING PROGRESS BAR ============ */
#readProgress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-brand), #f59551);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============ HERO ============ */
.lp-hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(231,106,31,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.lp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.lp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
}
.lp-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.lp-breadcrumb a:hover { color: var(--accent-brand); }
.lp-breadcrumb i { font-size: 10px; color: var(--border-color); }

/* Eyebrow badge */
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(231,106,31,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.lp-eyebrow span {
  width: 6px; height: 6px;
  background: var(--accent-brand);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Heading */
.lp-hero h1 {
  font-size: 54px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -2px;
  line-height: 1.06;
  margin-bottom: 18px;
  font-family: 'Space Grotesk', sans-serif;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.lp-hero h1 em {
  font-style: normal;
  color: var(--accent-brand);
}
.lp-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Meta pills */
.lp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lp-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--card-shadow);
  white-space: nowrap;
}
.lp-meta-pill i { color: var(--accent-brand); font-size: 11px; flex-shrink: 0; }
.lp-meta-pill strong { color: var(--text-dark); }

/* ============ TWO-COLUMN LAYOUT ============ */
.lp-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 52px;
  align-items: start;
  padding: 52px 0 120px;
}

/* ============ SIDEBAR ============ */
.lp-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
}
.lp-sidebar::-webkit-scrollbar { display: none; }

.lp-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.lp-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.lp-sidebar-logo img {
  width: 32px; height: 32px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.lp-sidebar-logo span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Space Grotesk', sans-serif;
}
.lp-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-sidebar-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* TOC list */
.lp-toc { list-style: none; padding: 0; margin: 0; }
.lp-toc li { margin-bottom: 2px; }
.lp-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.4;
}
.lp-toc a:hover {
  color: var(--text-dark);
  background: var(--bg-soft);
}
.lp-toc a.active {
  color: var(--accent-brand);
  background: var(--accent-soft);
  border-color: rgba(231,106,31,0.18);
  font-weight: 600;
}
.toc-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 18px;
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0.7;
}
.lp-toc a.active .toc-num {
  color: var(--accent-brand);
  opacity: 1;
}

/* Sidebar footer link */
.lp-sidebar-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.lp-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lp-sidebar-footer a:hover {
  background: var(--accent-soft);
  border-color: rgba(231,106,31,0.3);
  color: var(--accent-brand);
}
.lp-sidebar-footer a i { color: var(--accent-brand); }

/* ============ CONTENT SECTIONS ============ */
.lp-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  /* Prevent horizontal scroll from long contiguous text */
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.lp-section:last-child { border-bottom: none; }

.lp-section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.lp-section-icon {
  width: 46px; height: 46px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--accent-brand);
  flex-shrink: 0;
  transition: all 0.25s;
}
.lp-section:hover .lp-section-icon {
  background: var(--accent-soft);
  border-color: rgba(231,106,31,0.25);
}
.lp-section-title-wrap { flex: 1; min-width: 0; }
.lp-section-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-brand);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif;
}
.lp-section h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.4px;
  margin: 0;
}

/* ============ CONTENT TYPOGRAPHY ============ */
.lp-content p, .lp-content a {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.lp-content p:last-child { margin-bottom: 0; }
.lp-content ul,
.lp-content ol {
  padding-left: 0;
  margin: 12px 0 16px;
  list-style: none;
}
.lp-content ul li,
.lp-content ol li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}
.lp-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--accent-brand);
  border-radius: 50%;
}
.lp-content ol { counter-reset: lp-counter; }
.lp-content ol li { counter-increment: lp-counter; }
.lp-content ol li::before {
  content: counter(lp-counter) '.';
  position: absolute;
  left: 0; top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-brand);
  font-family: 'Space Grotesk', sans-serif;
}

/* ============ NOTICE BOXES ============ */
.lp-notice {
  display: flex;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(231,106,31,0.22);
  border-left: 4px solid var(--accent-brand);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
}
.lp-notice-icon {
  font-size: 16px;
  color: var(--accent-brand);
  margin-top: 2px;
  flex-shrink: 0;
}
.lp-notice p {
  font-size: 14px !important;
  color: var(--accent-hover) !important;
  font-weight: 600;
  margin: 0 !important;
  line-height: 1.65 !important;
}
.lp-notice.green {
  background: #edfdf3;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
}
.lp-notice.green .lp-notice-icon { color: #16a34a; }
.lp-notice.green p { color: #15803d !important; }

/* ============ TABLE ============ */
.lp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px; /* Prevents text from crushing too much on scroll */
}
.lp-table th {
  background: var(--bg-soft);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}
.lp-table td {
  padding: 12px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  line-height: 1.6;
  font-size: 14px;
}
.lp-table tr:last-child td { border-bottom: none; }
.lp-table tr:hover td { background: var(--bg-soft); }

/* ============ CONTACT GRID ============ */
.lp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.lp-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.lp-contact-link:hover {
  background: var(--accent-soft);
  border-color: rgba(231,106,31,0.3);
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231,106,31,0.12);
}
.lp-contact-link i {
  color: var(--accent-brand);
  font-size: 17px;
  flex-shrink: 0;
}
.lp-contact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.lp-contact-value {
  font-size: 13.5px;
  color: var(--text-dark);
  font-weight: 600;
  word-break: break-all; /* Ensures emails/links don't overflow */
}

/* ============ FOOTER NAV ACTIVE STATES ============ */
.footer-nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav-link:hover { color: var(--text-dark); }
.footer-nav-link.active {
  color: var(--accent-brand);
  font-weight: 700;
}

/* ============ RESPONSIVE (Tablets) ============ */
@media (max-width: 900px) {
  .lp-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 32px;
  }
  .lp-sidebar { display: none; }
  .lp-hero h1 { font-size: 36px; }
}

/* ============ RESPONSIVE (Mobile) ============ */
@media (max-width: 640px) {
  .lp-hero { padding: 60px 0 48px; }
  .lp-hero h1 { font-size: 30px; letter-spacing: -1.2px; }
  .lp-hero-sub { font-size: 15px; }
  .lp-section { padding: 32px 0; }
  .lp-section h2 { font-size: 18px; }
  
  /* Prevent pills from breaking container */
  .lp-meta-row { gap: 8px; }
  .lp-meta-pill { font-size: 11.5px; padding: 6px 12px; white-space: normal; }
  
  /* Shrink table padding so it fits better before scrolling */
  .lp-table th, .lp-table td { padding: 10px 12px; font-size: 13px; }
  
  /* Shrink notices */
  .lp-notice { padding: 14px 16px; gap: 10px; flex-direction: column; }
  .lp-notice-icon { margin-bottom: 4px; }
}

/* ============ RESPONSIVE (Extra Small Mobile < 380px) ============ */
@media (max-width: 380px) {
  .lp-hero h1 { font-size: 26px; }
  
  /* Stack contact grid vertically to avoid horizontal overflow */
  .lp-contact-grid { grid-template-columns: 1fr; }
  
  /* Ensure titles don't overflow */
  .lp-section-head { gap: 12px; }
  .lp-section-icon { width: 38px; height: 38px; font-size: 16px; }
}
