:root {
  --bg-primary: #0b0d11;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #ffffff;
  --text-secondary: #8b949e;
  --accent: #ff52bf;
  --accent-glow: rgba(255, 82, 191, 0.15);
  --border: #30363d;
  --sidebar-width: 280px;
  --toc-width: 250px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary); 
}
::-webkit-scrollbar-thumb {
  background: var(--border); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, text-shadow 0.2s;
}

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

/* Header/Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background-color: rgba(11, 13, 17, 0.85);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  position: relative;
}

.logo-area img {
  height: 30px;
  filter: drop-shadow(0 0 5px rgba(88, 166, 255, 0.3));
  animation: bounceLogo 3s infinite ease-in-out;
}

@keyframes bounceLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--text-primary);
}

/* Home Page */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(88, 166, 255, 0.2);
}

.hero-content .subtitle {
  color: var(--text-secondary);
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* About Page Specifics */
.floating-logo {
  max-width: 250px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 82, 191, 0.3));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: rgba(24, 18, 22, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(24, 18, 22, 0.9);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Features Section Custom */
.features-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.features-header .highlight {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.features-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: rgba(24, 18, 22, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-box:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  background: rgba(24, 18, 22, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 82, 191, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin: 0;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Stats & Grid Section */
.grid-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.dark-card {
  background: rgba(14, 11, 13, 0.5);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dark-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.dark-card .icon-square {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.stats-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
}

.stats-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '✓';
  color: var(--text-primary);
  font-weight: bold;
}

.stats-box-container {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Footer Custom */
.footer-main {
  background-color: #050405;
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Trusted By Section */
.trusted-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .trusted-section {
    grid-template-columns: 1fr;
  }
}

.trusted-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  height: 600px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.marquee-column {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem; /* Ensures seamless loop */
  will-change: transform;
}

/* Speed variations for natural feel */
.marquee-column:nth-child(1) .marquee-content {
  animation: scrollUp 25s linear infinite;
}
.marquee-column:nth-child(2) .marquee-content {
  animation: scrollDown 28s linear infinite;
}
.marquee-column:nth-child(3) .marquee-content {
  animation: scrollUp 22s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.logo-tile {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.4) brightness(0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Ensure images don't shrink */
  flex-shrink: 0;
}

.logo-tile:hover {
  filter: grayscale(0%) opacity(1) brightness(1);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 82, 191, 0.15);
  transform: scale(1.05);
  z-index: 2;
}

.trusted-content h4 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.trusted-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card-dark {
  background: #111418;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-card-dark h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

/* Sidebar */
.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--toc-width);
  min-height: calc(100vh - 71px);
  max-width: 1600px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 71px;
  height: calc(100vh - 71px);
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.left-sidebar {
  border-right: 1px solid var(--border);
}

.right-sidebar {
  padding-left: 1rem;
}

.sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.25rem;
}

.sidebar a {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.sidebar a:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar a.active {
  background-color: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

/* Right TOC specific */
.toc-list {
  border-left: 1px solid var(--border);
}

.toc-item a {
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
  padding-left: 1rem;
}

.toc-item a.active {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-glow) 0%, transparent 100%);
  color: var(--accent);
}

.toc-item.level-1 { font-weight: bold; margin-top: 1rem; }
.toc-item.level-2 { margin-left: 0; }
.toc-item.level-3 { margin-left: 0.8rem; font-size: 0.85rem; }

.content {
  padding: 3rem 4rem;
  min-width: 0; /* Prevents overflow in grid */
}

/* Markdown Content Styling */
.markdown-body {
  color: var(--text-primary);
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: none;
  scroll-margin-top: 100px; /* Offset for sticky header */
}

.markdown-body h1 { 
  font-size: 2.5rem; 
  padding-bottom: 0.5rem;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid var(--border);
}

.markdown-body h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.markdown-body h3 { font-size: 1.4rem; color: #d0d7de; }

.markdown-body p {
  margin-bottom: 1.2rem;
  color: #c9d1d9;
  font-size: 1.05rem;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #c9d1d9;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

.markdown-body code {
  background-color: rgba(110, 118, 129, 0.4);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  font-size: 85%;
  color: #e6edf3;
}

/* Code Blocks with "Window" header */
.markdown-body pre {
  background-color: #0d1117;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
  padding-top: 2.5rem; /* Space for window header */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.markdown-body pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background-color: #161b22;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.markdown-body pre::after {
  content: '● ● ●';
  position: absolute;
  top: 0.3rem;
  left: 1rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #30363d; /* Fallback */
  background: linear-gradient(to right, #ff5f56, #ffbd2e, #27c93f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
  line-height: 1.5rem;
}

.markdown-body pre code {
  background-color: transparent;
  padding: 1rem;
  font-size: 0.9rem;
  color: inherit;
  display: block;
  overflow-x: auto;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
}

.markdown-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background-color: rgba(88, 166, 255, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  margin: 1.5rem 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.markdown-body th, .markdown-body td {
  padding: 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}

.markdown-body th {
  background-color: var(--bg-secondary);
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-size: 0.9rem;
}

/* About Page */
.about-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  animation: fadeIn 0.5s ease-out;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.badge-green {
  background-color: rgba(35, 134, 54, 0.2);
  color: #3fb950;
  border-color: rgba(35, 134, 54, 0.4);
}

.badge-red, .badge-critical {
  background-color: rgba(218, 54, 51, 0.2);
  color: #f85149;
  border-color: rgba(218, 54, 51, 0.4);
}

.badge-orange, .badge-warning, .badge-monitor {
  background-color: rgba(187, 128, 9, 0.2);
  color: #d29922;
  border-color: rgba(187, 128, 9, 0.4);
}

.badge-blue {
  background-color: rgba(31, 111, 235, 0.2);
  color: #58a6ff;
  border-color: rgba(31, 111, 235, 0.4);
}

.badge-grey, .badge-gray {
  background-color: rgba(110, 118, 129, 0.2);
  color: #c9d1d9;
  border-color: rgba(110, 118, 129, 0.4);
}

/* Inline code styling to match badges/dark theme */
code {
  background-color: rgba(110, 118, 129, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: #e6edf3;
}

/* Code block styling override */
pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* Table styling for badge alignment */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 10px;
  border: 1px solid #30363d;
  text-align: left;
}

th {
  background-color: #161b22;
}

/* Responsive */
@media (max-width: 1200px) {
  .docs-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    display: none; /* In a real app, this would become a hamburger menu */
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Legal Pages Layout */
.legal-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  animation: fadeIn 0.5s ease-out;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(255, 82, 191, 0.4));
}

.legal-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #ff52bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.legal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.legal-content h1 { display: none; } /* Hide h1 inside content if redundant */
.legal-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.legal-content p {
  margin-bottom: 1.2rem;
  color: #c9d1d9;
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #c9d1d9;
}

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

.legal-content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 1.5rem;
  }
  .legal-title {
    font-size: 2rem;
  }
}

/* Sidebar Categories */
.doc-category {
  margin-bottom: 1.5rem;
}

.category-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-left: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.sidebar-placeholder {
  display: block;
  padding: 0.4rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.5;
  cursor: default;
}
