/* Legal Pages Styles */

.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Highlight Box */
.privacy-highlight {
  display: flex;
  gap: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 48px;
}

.highlight-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.highlight-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.highlight-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Legal Sections */
.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 8px;
}

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

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Info Box */
.info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.info-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 8px;
}

.info-box p {
  margin: 0;
  color: var(--text-secondary);
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

/* Cookie Table */
.cookie-table {
  margin: 24px 0;
}

.cookie-table h3 {
  margin-top: 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.cookie-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cookie-table code {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Legal Summary */
.legal-summary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 48px;
}

.legal-summary h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.legal-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-summary li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 100px;
  }

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

  .privacy-highlight {
    flex-direction: column;
    text-align: center;
  }

  .highlight-icon {
    margin: 0 auto;
  }

  .cookie-table {
    overflow-x: auto;
  }

  .cookie-table table {
    min-width: 500px;
  }
}
