/* ==========================================================================
   ORQUV TECH LABS — POLICIES & LEGAL PAGES STYLESHEET
   ========================================================================== */

/* Policy Page Layout */
.policy-page {
  padding-top: 110px;
  padding-bottom: 80px;
  background: var(--bg);
  min-height: 100vh;
}

/* Policy Hero Header */
.policy-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(26, 86, 219, 0.95)), url('../images/pattern.svg');
  background-size: cover;
  color: var(--white);
  padding: 56px 0 48px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.policy-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}

.policy-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.policy-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 14px;
  color: var(--white);
}

.policy-hero h1 span {
  color: var(--orange);
}

.policy-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.policy-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Nav Tabs Bar */
.policy-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.policy-tab {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.policy-tab:hover {
  color: var(--primary);
  background: rgba(26, 86, 219, 0.05);
}

.policy-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

/* Policy Content Grid */
.policy-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

/* Table of Contents Sidebar */
.policy-sidebar {
  position: sticky;
  top: 90px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--primary);
  background: var(--bg2);
  padding-left: 16px;
}

.toc-list a.active {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.08);
  font-weight: 600;
}

/* Sidebar Contact Box */
.sidebar-help-card {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.04), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-radius: var(--radius);
  text-align: center;
}

.sidebar-help-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.sidebar-help-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* Main Body Content */
.policy-body {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
}

.policy-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

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

.policy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(26, 86, 219, 0.1);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.policy-section h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 20px 0 10px;
}

.policy-section p {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-section ul, .policy-section ol {
  margin: 12px 0 20px 20px;
}

.policy-section ul li, .policy-section ol li {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.policy-section ul li::marker {
  color: var(--orange);
}

/* Callout Banners & Alerts */
.alert-box {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  line-height: 1.6;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 5px solid #ef4444;
}

.alert-danger .alert-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.alert-danger h4 {
  color: #991b1b;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.alert-danger p {
  color: #7f1d1d;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 5px solid var(--yellow);
}

.alert-warning .alert-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.alert-warning h4 {
  color: #92400e;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.alert-warning p {
  color: #78350f;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.alert-info {
  background: rgba(26, 86, 219, 0.06);
  border: 1px solid rgba(26, 86, 219, 0.2);
  border-left: 5px solid var(--primary);
}

.alert-info .alert-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.alert-info h4 {
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.alert-info p {
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Summary Feature Cards */
.summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.summary-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.summary-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.summary-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.summary-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Contact Footer Box inside Policy */
.policy-contact-box {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, var(--navy), #1e293b);
  border-radius: var(--radius);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.policy-contact-box h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 6px;
}

.policy-contact-box p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .policy-sidebar {
    position: static;
    display: none; /* Hide sticky sidebar on tablet/mobile for cleaner reading */
  }
  .policy-body {
    padding: 28px 20px;
  }
  .policy-nav-tabs {
    border-radius: 16px;
  }
  .policy-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .policy-hero {
    padding: 36px 16px 32px;
  }
  .policy-contact-box {
    flex-direction: column;
    text-align: center;
  }
  .summary-cards-grid {
    grid-template-columns: 1fr;
  }
}
