/* ===== TERMS OF SERVICE PAGE CSS ===== */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --accent-primary: #58a6ff;
  --accent-hover: #1f6feb;
  --border-primary: #30363d;
  --max-width: 900px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.login-btn,
.signup-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.login-btn {
  color: var(--text-primary);
  background: transparent;
}

.login-btn:hover {
  background: var(--bg-tertiary);
}

.signup-btn {
  color: white;
  background: var(--accent-primary);
}

.signup-btn:hover {
  background: var(--accent-hover);
}

/* ===== MAIN CONTAINER ===== */
.settings-container {
  min-height: calc(100vh - 70px);
  padding: 2rem 1.5rem;
}

.settings-layout {
  max-width: var(--max-width);
  margin: 0 auto;
}

.settings-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 2.5rem;
}

/* ===== CONTENT SECTIONS ===== */
.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.effective-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-primary);
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-primary);
}

h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

strong {
  color: var(--accent-primary);
  font-weight: 600;
}

em {
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== LISTS ===== */
ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-primary);
}

ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

ul li::marker {
  color: var(--accent-primary);
}

/* ===== LINKS ===== */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
}

.footer-container {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-container p {
  margin: 0;
  line-height: 1.8;
}

.footer-container a {
  color: var(--accent-primary);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .settings-content {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .login-btn,
  .signup-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }

  ul {
    margin-left: 1rem;
  }

  .settings-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .settings-content {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .footer-container {
    font-size: 0.85rem;
  }
}

/* ===== ACCESSIBILITY ===== */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background: white;
    color: black;
  }

  .main-navigation,
  .site-footer {
    display: none;
  }

  .settings-content {
    border: none;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}