/* Hero */
.pp-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--muted) 0%, transparent 100%);
}

.pp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.pp-hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.pp-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.pp-hero h1 span {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-hero p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Ad Banner */
.pp-ad-banner {
  padding: 20px 0;
}

.ad-placeholder {
  background: linear-gradient(135deg, var(--muted), #e2e8f0);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.ad-leaderboard {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.ad-rectangle {
  width: 300px;
  height: 250px;
}

/* Content Section */
.content-section {
  padding: 60px 0;
}

.content-wrapper {
  display: flex;
  gap: 40px;
}

.main-content {
  flex: 1;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Terms Content */
.terms-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--muted);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

.last-updated svg {
  width: 16px;
  height: 16px;
}

.terms-section {
  margin-bottom: 40px;
}

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

.terms-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-section h2 .section-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.terms-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--foreground);
}

.terms-section p {
  color: var(--muted-foreground);
  margin-bottom: 16px;
  line-height: 1.8;
}

.terms-section ul, .terms-section ol {
  margin-bottom: 16px;
  padding-left: 0;
}

.terms-section ul {
  list-style: none;
}

.terms-section ul li {
  position: relative;
  padding-left: 28px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
  line-height: 1.7;
}

.terms-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.terms-section ol {
  list-style: none;
  counter-reset: item;
}

.terms-section ol li {
  position: relative;
  padding-left: 32px;
  color: var(--muted-foreground);
  margin-bottom: 12px;
  line-height: 1.7;
  counter-increment: item;
}

.terms-section ol li::before {
  content: counter(item, lower-alpha) ")";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.highlight-box p {
  color: var(--foreground);
  margin: 0;
  font-weight: 500;
}

.warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.warning-box p {
  color: #dc2626;
  margin: 0;
  font-weight: 500;
}

/* Table of Contents */
.toc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.toc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 8px;
  transition: all 0.2s;
}

.toc-list a:hover {
  background: var(--muted);
  color: var(--primary);
}

.sidebar-ad {
  margin-top: 24px;
}

/* Related Links */
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.related-links {
  list-style: none;
}

.related-links li {
  margin-bottom: 8px;
}

.related-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: var(--muted);
  border-radius: 8px;
  transition: all 0.2s;
}

.related-links a:hover {
  background: var(--primary);
  color: white;
}

.related-links svg {
  width: 16px;
  height: 16px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .toc-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {

  .pp-hero {
    padding: 60px 0 40px;
  }

  .pp-hero h1 {
    font-size: 2rem;
  }

  .pp-hero p {
    font-size: 1rem;
  }

  .terms-card {
    padding: 24px;
  }

  .terms-section h2 {
    font-size: 1.25rem;
  }

  .ad-leaderboard {
    height: 60px;
  }
}