/* Loan Planner Legal Pages - Matching App Theme */

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-darker: #5B21B6;
  --background: #F8F7FC;
  --surface: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --shadow: rgba(124, 58, 237, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary-darker));
  border-radius: 24px;
  color: white;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px var(--shadow);
}

.logo {
  margin-bottom: 20px;
}

.logo-img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.description {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Cards */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px 24px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: var(--primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Legal Page Styles */
.page-header {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  color: white;
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header .last-updated {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-dark);
}

.content {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
}

.content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 32px;
  margin-bottom: 16px;
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.content a {
  color: var(--primary);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(109, 40, 217, 0.05));
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

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

/* Support Page */
.support-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
}

.support-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.support-card a.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.support-card a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px 16px;
  }

  .hero {
    padding: 40px 20px;
    border-radius: 20px;
  }

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

  .content {
    padding: 24px;
  }

  .nav-cards {
    grid-template-columns: 1fr;
  }
}
