/* ========================================
   AstroVibe Legal Site — style.css
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #07050f;
  --bg-card:    #0f0c1f;
  --border:     rgba(255,255,255,0.07);
  --text:       #e2e0f0;
  --muted:      rgba(255,255,255,0.45);
  --accent:     #a855f7;
  --accent2:    #7dd3fc;
  --heading:    #fff;
  --radius:     16px;
  --max-w:      760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Stars background ---- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d,3s) ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity: var(--lo,.1); transform: scale(1); }
  50%      { opacity: var(--hi,.7); transform: scale(1.3); }
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7,5,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.4px;
}
.logo span { color: var(--accent); }
.logo-icon { color: #e9b949; font-size: 18px; }

/* ---- Hero (index) ---- */
.hero-main {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  color: #c084fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 48px;
}

/* ---- Document cards (index) ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 40px;
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

.doc-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(168,85,247,.15), transparent);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.doc-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.doc-card:hover::before { opacity: 1; }

.doc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.doc-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.doc-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.doc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-card-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(168,85,247,0.8);
  letter-spacing: 0.3px;
}

.doc-card-arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform .2s;
}
.doc-card:hover .doc-card-arrow { transform: translateX(4px); }

/* ---- Contact box ---- */
.contact-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.contact-box a {
  color: var(--accent2);
  text-decoration: none;
}
.contact-box a:hover { text-decoration: underline; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  position: relative;
  z-index: 1;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

/* ========================================
   DOCUMENT PAGE (privacy.html / terms.html)
   ======================================== */

.doc-page {
  padding: 60px 0 80px;
}

.doc-page .container { max-width: var(--max-w); }

.doc-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 36px;
  transition: color .15s;
}
.doc-nav-back:hover { color: #fff; }

.doc-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.doc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.doc-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---- TOC ---- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 20px;
}
.toc a:hover { color: #fff; }

/* ---- Document content sections ---- */
.doc-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}

.section-number {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.3;
}

.doc-section p,
.doc-section li {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(226,224,240,0.82);
}

.doc-section ul,
.doc-section ol {
  margin: 12px 0 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-section ul li { list-style: disc; }
.doc-section ol li { list-style: decimal; }

.doc-section p + p { margin-top: 12px; }

/* Highlight box */
.highlight-box {
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}
.info-table th,
.info-table td {
  padding: 11px 14px;
  text-align: left;
  border: 1px solid var(--border);
}
.info-table th {
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.info-table td { color: rgba(226,224,240,0.8); }
.info-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Tag badge */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(168,85,247,0.15);
  color: #c084fc;
}

/* Contact section */
.contact-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 48px;
}
.contact-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.contact-section p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-section a {
  color: var(--accent2);
  text-decoration: none;
}
.contact-section a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero-main { padding: 60px 0 40px; }
  .doc-page { padding: 40px 0 60px; }
  .info-table { font-size: 12.5px; }
  .info-table th, .info-table td { padding: 8px 10px; }
}
