/* Modern Professional Design - AIDITOR Terms Page */
:root {
  /* Refined, Professional Color Palette */
  --primary: #4f46e5; /* Indigo 600 */
  --primary-light: #6366f1; /* Indigo 500 */
  --primary-dark: #4338ca; /* Indigo 700 */
  --secondary: #10b981; /* Emerald 500 */
  --accent: #f97316; /* Orange 500 */
  --success: #22c55e; /* Green 500 */
  --warning: #f59e0b; /* Amber 500 */
  --danger: #ef4444; /* Red 500 */

  /* Light Theme */
  --bg-primary: #f9fafb; /* Gray 50 */
  --bg-secondary: #f3f4f6; /* Gray 100 */
  --bg-tertiary: #e5e7eb; /* Gray 200 */
  --text-primary: #111827; /* Gray 900 */
  --text-secondary: #374151; /* Gray 700 */
  --text-muted: #6b7280; /* Gray 500 */
  --border-light: #e5e7eb; /* Gray 200 */
  --border-medium: #d1d5db; /* Gray 300 */

  /* Shadows */
  --shadow-sm: 0 2px 8px 0 rgb(79 70 229 / 0.06);
  --shadow-md: 0 6px 16px -2px rgb(79 70 229 / 0.1),
    0 2px 8px -2px rgb(16 185 129 / 0.08);
  --shadow-lg: 0 16px 32px -4px rgb(79 70 229 / 0.12),
    0 8px 24px -6px rgb(249 115 22 / 0.1);
  --shadow-xl: 0 32px 64px -8px rgb(79 70 229 / 0.15),
    0 16px 48px -12px rgb(16 185 129 / 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #3b82f6 0%,
    #8b5cf6 50%,
    #d946ef 100%
  );
  --gradient-secondary: linear-gradient(
    120deg,
    var(--accent) 0%,
    var(--primary) 50%,
    var(--secondary) 100%
  );
  --gradient-accent: linear-gradient(
    120deg,
    var(--warning) 0%,
    var(--accent) 100%
  );
}

/* Dark Theme */
body.dark {
  --bg-primary: #030712; /* Gray 950 */
  --bg-secondary: #111827; /* Gray 900 */
  --bg-tertiary: #1f2937; /* Gray 800 */
  --text-primary: #f9fafb; /* Gray 50 */
  --text-secondary: #d1d5db; /* Gray 300 */
  --text-muted: #9ca3af; /* Gray 400 */
  --border-light: #1f2937; /* Gray 800 */
  --border-medium: #374151; /* Gray 700 */

  /* Enhanced dark mode shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3),
    0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4),
    0 8px 10px -6px rgb(0 0 0 / 0.4);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: radial-gradient(
      ellipse at 20% 10%,
      rgba(79, 70, 229, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 40% 60%,
      rgba(249, 115, 22, 0.04) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(245, 158, 11, 0.03) 0%,
      transparent 35%
    ),
    radial-gradient(
      ellipse at 10% 90%,
      rgba(79, 70, 229, 0.04) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 90% 70%,
      rgba(16, 185, 129, 0.03) 0%,
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--bg-primary) 0%,
      var(--bg-secondary) 50%,
      var(--bg-primary) 100%
    );
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Header */
.header {
  position: static;
  background: transparent;
  border-bottom: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

body.dark .header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-size: 200% auto;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.content {
  max-width: none;
}

.last-updated {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.section-text {
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-weight: 500;
  opacity: 0.85;
}

.section-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.section-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-main {
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-separator {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

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

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Fixed theme toggle in bottom right corner */
.theme-toggle-fixed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.875rem;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-fixed:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.theme-toggle-fixed .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 50;
  backdrop-filter: blur(20px);
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.cookie-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-button {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cookie-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Utilities */
.hidden {
  display: none;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Responsive Design */
@media (min-width: 640px) {
  .cookie-content {
    flex-direction: row;
  }

  .cookie-text {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .main-content {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .main-content {
    padding: 3rem 2rem;
  }
}
