/* ============================================
   Payora — Legal Pages Styles
   ============================================ */

.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  background: var(--bg);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-200), transparent);
}

.page-hero-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.page-content {
  padding: 60px 0 100px;
}

.content-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.content-section {
  margin-bottom: 36px;
}

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

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.content-section p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.content-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.content-section li::marker {
  color: var(--primary);
}

.content-section strong {
  color: var(--text);
}

.highlight-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

[data-theme="dark"] .highlight-box {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Documentation Specific ---------- */
.doc-nav {
  position: sticky;
  top: 80px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.doc-sidebar-nav {
  list-style: none;
  padding: 0;
}

.doc-sidebar-nav li {
  margin-bottom: 4px;
}

.doc-sidebar-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-weight: 500;
  border-left: 2px solid transparent;
}

.doc-sidebar-nav a:hover,
.doc-sidebar-nav a.active {
  color: var(--primary);
  background: var(--primary-50);
  border-left-color: var(--primary);
}

[data-theme="dark"] .doc-sidebar-nav a:hover,
[data-theme="dark"] .doc-sidebar-nav a.active {
  background: rgba(99, 102, 241, 0.1);
}

.doc-main .content-card {
  max-width: none;
}

.doc-code {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 12px 0 16px;
}

.doc-code .comment { color: #64748b; }
.doc-code .tag { color: #7dd3fc; }
.doc-code .attr { color: #c084fc; }
.doc-code .string { color: #86efac; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.doc-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-tertiary);
  border-bottom: 2px solid var(--border);
}

.doc-table td {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.doc-table code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  color: var(--primary);
}

@media (max-width: 768px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .doc-sidebar {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
  }

  .content-card {
    padding: 24px;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }
  
  .page-hero {
    padding: 80px 0 40px;
  }
  
  .page-hero-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  
  .page-hero-subtitle {
    font-size: 0.9rem;
  }
  
  .page-content {
    padding: 40px 0 60px;
  }
  
  .page-container {
    padding: 0 20px;
  }
  
  .content-section h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  
  .content-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .content-section p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .content-section ul,
  .content-section ol {
    padding-left: 20px;
    margin-bottom: 12px;
  }
  
  .content-section li {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }
  
  .highlight-box {
    gap: 12px;
    padding: 16px;
    margin: 16px 0;
    font-size: 0.82rem;
    flex-direction: column;
  }
  
  .highlight-icon {
    width: 36px;
    height: 36px;
  }
  
  .doc-code {
    padding: 12px 16px;
    font-size: 0.75rem;
    margin: 10px 0 12px;
  }
  
  .doc-table {
    font-size: 0.8rem;
  }
  
  .doc-table th,
  .doc-table td {
    padding: 8px 10px;
  }
  
  .doc-sidebar-nav a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Small Phones (480px and below) */
@media (max-width: 480px) {
  .page-hero {
    padding: 60px 0 30px;
  }
  
  .page-hero-title {
    font-size: 1.4rem;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
  }
  
  .page-hero-subtitle {
    font-size: 0.85rem;
  }
  
  .page-hero-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  
  .page-content {
    padding: 30px 0 40px;
  }
  
  .page-container {
    padding: 0 16px;
  }
  
  .content-card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .content-section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .content-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .content-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  
  .content-section strong {
    font-weight: 700;
  }
  
  .content-section ul,
  .content-section ol {
    padding-left: 18px;
    margin-bottom: 10px;
  }
  
  .content-section li {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 4px;
  }
  
  .content-section li::marker {
    font-size: 0.9em;
  }
  
  .highlight-box {
    gap: 10px;
    padding: 12px;
    margin: 12px 0;
    font-size: 0.78rem;
    flex-direction: column;
  }
  
  .highlight-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .doc-sidebar {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  
  .doc-sidebar-nav a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  
  .doc-code {
    padding: 10px 12px;
    font-size: 0.7rem;
    line-height: 1.5;
    margin: 8px 0 10px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  
  .doc-table {
    font-size: 0.75rem;
    margin: 12px 0;
  }
  
  .doc-table th,
  .doc-table td {
    padding: 6px 8px;
  }
}
