/* =========================================
   LEGAL PAGES STYLESHEET
   For Privacy Policy & Terms of Service
   Depends on: main.css (variables, base styles)
   ========================================= */

/* Legal Content Layout */
.legal-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--text);
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text);
}

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

/* Lists */
section ul,
section ol {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.7;
  color: var(--text);
}

section li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

section li strong {
  color: var(--text);
  font-weight: 600;
}

/* Links in legal content */
section a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

section a:hover {
  color: var(--accent-hover);
}

/* Time element */
time {
  color: var(--text-secondary);
}

/* Back link */
.back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-link a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Logo link (for legal pages) */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover .logo-icon {
  transform: scale(1.1) rotate(10deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .legal-content {
    padding: 2rem 1rem;
  }

  .legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .legal-header h1 {
    font-size: 1.75rem;
  }

  section {
    margin-bottom: 2rem;
  }

  section h2 {
    font-size: 1.25rem;
  }

  section ul,
  section ol {
    margin-left: 1rem;
  }

  .back-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}
