/* MathsWithSD — Legal & Information Stylesheet */
:root {
  --primary-color: #4a148c; /* Student Purple Brand */
  --primary-hover: #380d6b;
  --primary-light: #f3e5f5; /* Lavender Accent */
  --bg-main: #faf9fc;
  --bg-card: #ffffff;
  --border-color: rgba(74, 20, 140, 0.08);
  --border-hover: rgba(74, 20, 140, 0.18);
  
  /* Text colors */
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

/* Header Navbar */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-box {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.2);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Main Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(74, 20, 140, 0.02);
  margin-bottom: 2rem;
}

/* Typography */
h2.title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

p.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.content-section {
  margin-bottom: 2rem;
}

.content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-section p, .content-section ul {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 1rem;
}

.content-section ul {
  padding-left: 1.25rem;
  list-style-type: disc;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Legal Highlight Alert Box */
.alert-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
}

.alert-box p {
  font-size: 0.9rem;
  color: var(--primary-hover);
  font-weight: 600;
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: all 0.2s ease;
  width: 100%;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn {
  font-family: var(--font-sans);
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.2);
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(74, 20, 140, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Form Success State Screen */
.success-screen {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  background-color: #d1fae5;
  color: #059669;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.success-screen h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.success-screen p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .navbar {
    padding: 1rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }
  h2.title {
    font-size: 1.6rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
}
