/* Shared styles for info pages (FAQ, Terms, Privacy, etc.) */
.info-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #d8d8e4 0%, #e8e8f0 25%, #e0e0ec 50%, #eaeaf2 75%, #dcdce8 100%);
  background-attachment: fixed;
}

html[data-theme="dark"] .info-page {
  background: linear-gradient(135deg, #1a1a22 0%, #1e1e28 25%, #22222a 50%, #1a1a1e 75%, #1c1c24 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .info-page {
    background: linear-gradient(135deg, #1a1a22 0%, #1e1e28 25%, #22222a 50%, #1a1a1e 75%, #1c1c24 100%);
  }
}

.info-top-bar {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.info-top-bar-content {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.info-site-branding {
  display: flex;
  align-items: center;
}

.info-site-name {
  font-family: 'Leckerli One', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.info-site-logo {
  width: 40px;
  height: 40px;
}

.info-site-name:hover {
  text-decoration: none;
  opacity: 0.8;
}

.info-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  opacity: 0.9;
}

.info-nav a {
  color: var(--text-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.info-nav a:hover {
  opacity: 0.7;
}

.info-nav svg {
  width: 24px;
  height: 24px;
}

.info-content-wrapper {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.info-content {
  color: var(--text-color);
}

.info-section-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.info-section-card:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .info-section-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .info-section-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

.info-content h1 {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.info-content h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Spectral-10 color palette cycling for H2 headers */
.info-section-card:nth-of-type(10n+1) h2 { color: #9e0142; } /* Deep red */
.info-section-card:nth-of-type(10n+2) h2 { color: #d53e4f; } /* Red */
.info-section-card:nth-of-type(10n+3) h2 { color: #f46d43; } /* Coral */
.info-section-card:nth-of-type(10n+4) h2 { color: #fdae61; } /* Orange */
.info-section-card:nth-of-type(10n+5) h2 { color: #fee08b; } /* Yellow */
.info-section-card:nth-of-type(10n+6) h2 { color: #e6f598; } /* Light yellow-green */
.info-section-card:nth-of-type(10n+7) h2 { color: #abdda4; } /* Light green */
.info-section-card:nth-of-type(10n+8) h2 { color: #66c2a5; } /* Teal-green */
.info-section-card:nth-of-type(10n+9) h2 { color: #3288bd; } /* Blue */
.info-section-card:nth-of-type(10n+10) h2 { color: #5e4fa2; } /* Purple */

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.heading-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .heading-icon {
    width: 32px;
    height: 32px;
  }
}

.info-content h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.info-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.info-content ul, .info-content ol {
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

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

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

.info-content code {
  background-color: var(--sidebar-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.info-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.info-content strong {
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .info-top-bar-content {
    padding: 0 15px;
  }

  .info-site-name {
    font-size: 1.5rem;
  }

  .info-site-logo {
    width: 30px;
    height: 30px;
  }

  .info-content-wrapper {
    padding: 40px 15px;
  }

  .info-section-card {
    padding: 0.75rem 1rem;
  }

  .info-content h1 {
    font-size: 2.5rem;
  }

  .info-content h2 {
    font-size: 1.85rem;
  }

  .info-content h3 {
    font-size: 1.2rem;
  }
}

/* Table of Contents styles */
.info-toc {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .info-toc {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .info-toc {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

.info-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: transparent;
  cursor: pointer;
  user-select: none;
}

.info-toc-header:hover {
  background-color: var(--item-hover);
}

.info-toc-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}

.info-toc-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.info-toc-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.info-toc-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background-color: transparent;
}

.info-toc-list li {
  margin: 0;
}

.info-toc-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.info-toc-list a:hover {
  background-color: var(--item-hover);
  text-decoration: underline;
}

/* Aside / notice blocks */
.aside {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.aside-icon-wrapper {
  flex-shrink: 0;
  padding-top: 2px;
}

.aside-icon {
  width: 24px;
  height: 24px;
}

.aside-body {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.aside-body p:last-child {
  margin-bottom: 0;
}

.aside--info {
  background: rgba(102, 225, 255, 0.1);
  border-left-color: #66e1ff;
}

.aside--warning {
  background: rgba(255, 239, 94, 0.1);
  border-left-color: #ffef5e;
}

.aside--alert {
  background: rgba(255, 128, 140, 0.1);
  border-left-color: #ff808c;
}

.aside--feedback {
  background: rgba(102, 225, 255, 0.1);
  border-left-color: #66e1ff;
}

html[data-theme="dark"] .aside--info {
  background: rgba(102, 225, 255, 0.08);
}

html[data-theme="dark"] .aside--warning {
  background: rgba(255, 239, 94, 0.08);
}

html[data-theme="dark"] .aside--alert {
  background: rgba(255, 128, 140, 0.08);
}

html[data-theme="dark"] .aside--feedback {
  background: rgba(102, 225, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .aside--info {
    background: rgba(102, 225, 255, 0.08);
  }

  html:not([data-theme="light"]) .aside--warning {
    background: rgba(255, 239, 94, 0.08);
  }

  html:not([data-theme="light"]) .aside--alert {
    background: rgba(255, 128, 140, 0.08);
  }

  html:not([data-theme="light"]) .aside--feedback {
    background: rgba(102, 225, 255, 0.08);
  }
}

@media (max-width: 768px) {
  .aside {
    padding: 0.75rem 1rem;
  }
}
