/* Virtual Vanguards - blog
   Shared by: ar/privacy-policy.html, ar/terms.html, privacy-policy.html, terms.html, tr/privacy-policy.html, tr/terms.html
   Edit here, not in the HTML. */

/* ===== RESET & VARIABLES ===== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --primary: #6366f1;
      --primary-dark: #4f46e5;
      --secondary: #06b6d4;
      --dark: #0f172a;
      --darker: #020617;
      --card-bg: #0d1526;
      --border: rgba(255,255,255,0.08);
      --text-light: #cbd5e1;
      --text-muted: #94a3b8;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--darker);
      color: #fff;
      overflow-x: hidden;
      line-height: 1.7;
    }

    /* ===== NAV ===== */
    nav {
      position: fixed; top: 0; width: 100%;
      padding: 1.25rem 2rem;
      background: rgba(2, 6, 23, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      z-index: 1000;
      transition: all 0.3s ease;
    }

    nav.scrolled {
      background: rgba(15, 23, 42, 0.97);
      padding: 0.9rem 2rem;
      box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    }

    .nav-container {
      max-width: 1400px; margin: 0 auto;
      display: flex; justify-content: space-between; align-items: center;
    }

    .logo {
      font-size: 1.5rem; font-weight: 800;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text; text-decoration: none;
      letter-spacing: -0.5px;
    }

    .nav-back {
      display: inline-flex; align-items: center; gap: 0.5rem;
      color: var(--text-light); text-decoration: none;
      font-size: 0.9rem; font-weight: 500;
      padding: 0.55rem 1.25rem;
      border: 1px solid var(--border);
      border-radius: 50px;
      transition: all 0.25s;
    }

    .nav-back:hover {
      color: #fff;
      border-color: rgba(99,102,241,0.5);
      background: rgba(99,102,241,0.1);
    }

    /* ===== HERO ===== */
    .policy-hero {
      padding: 9rem 2rem 4rem;
      background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, transparent 100%);
      border-bottom: 1px solid var(--border);
      text-align: center;
    }

    .policy-hero .tag {
      display: inline-flex; align-items: center; gap: 0.5rem;
      background: rgba(99,102,241,0.1);
      border: 1px solid rgba(99,102,241,0.3);
      padding: 0.45rem 1rem; border-radius: 50px;
      font-size: 0.82rem; font-weight: 600;
      color: var(--primary); margin-bottom: 1.5rem;
    }

    .policy-hero h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 900; letter-spacing: -1.5px;
      line-height: 1.15; margin-bottom: 1rem;
    }

    .gradient-text {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .policy-hero .meta {
      color: var(--text-muted); font-size: 0.95rem;
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }

    .policy-hero .meta i { color: var(--secondary); }

    /* ===== CONTENT LAYOUT ===== */
    .policy-content {
      max-width: 820px; margin: 0 auto;
      padding: 4rem 2rem 5rem;
    }

    /* Table of contents */
    .toc {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.75rem 2rem;
      margin-bottom: 3.5rem;
    }

    .toc h2 {
      font-size: 1rem; font-weight: 700;
      color: var(--text-light); text-transform: uppercase;
      letter-spacing: 0.08em; margin-bottom: 1rem;
    }

    .toc ol {
      list-style: none; counter-reset: toc-counter;
      display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem;
    }

    .toc ol li {
      counter-increment: toc-counter;
      display: flex; align-items: center; gap: 0.6rem;
    }

    .toc ol li::before {
      content: counter(toc-counter, decimal-leading-zero);
      font-size: 0.75rem; font-weight: 700;
      color: var(--primary); flex-shrink: 0;
    }

    .toc ol li a {
      color: var(--text-light); text-decoration: none;
      font-size: 0.9rem; transition: color 0.2s;
    }

    .toc ol li a:hover { color: var(--secondary); }

    /* Section blocks */
    .policy-section {
      margin-bottom: 3rem;
      scroll-margin-top: 90px;
    }

    .section-header {
      display: flex; align-items: center; gap: 1rem;
      margin-bottom: 1.25rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border);
    }

    .section-icon {
      width: 42px; height: 42px; flex-shrink: 0;
      background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.2));
      border: 1px solid rgba(99,102,241,0.3);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; color: var(--primary);
    }

    .policy-section h2 {
      font-size: 1.35rem; font-weight: 700;
      color: #fff;
    }

    .policy-section p {
      color: var(--text-light);
      font-size: 0.97rem;
      line-height: 1.8;
      margin-bottom: 1rem;
    }

    .policy-section p:last-child { margin-bottom: 0; }

    .policy-section ul {
      list-style: none; margin: 0.75rem 0 1rem 0;
    }

    .policy-section ul li {
      color: var(--text-light);
      font-size: 0.97rem;
      padding: 0.4rem 0 0.4rem 1.6rem;
      position: relative;
      line-height: 1.7;
    }

    .policy-section ul li::before {
      content: '';
      position: absolute; left: 0; top: 0.75rem;
      width: 7px; height: 7px; border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
    }

    .policy-section ul li strong {
      color: #fff; font-weight: 600;
    }

    /* Highlight box */
    .highlight-box {
      background: rgba(99,102,241,0.08);
      border: 1px solid rgba(99,102,241,0.25);
      border-left: 3px solid var(--primary);
      border-radius: 0 12px 12px 0;
      padding: 1.1rem 1.4rem;
      margin: 1.25rem 0;
      color: var(--text-light);
      font-size: 0.93rem;
      line-height: 1.75;
    }

    .highlight-box strong { color: #fff; }

    /* External link styling */
    .policy-section a {
      color: var(--secondary);
      text-decoration: none;
      border-bottom: 1px solid rgba(6,182,212,0.3);
      transition: border-color 0.2s;
    }

    .policy-section a:hover { border-color: var(--secondary); }

    /* Contact card */
    .contact-card {
      background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.08));
      border: 1px solid rgba(99,102,241,0.25);
      border-radius: 16px;
      padding: 2rem;
      display: flex; align-items: center; gap: 1.5rem;
      margin-top: 1rem;
    }

    .contact-card-icon {
      width: 52px; height: 52px; flex-shrink: 0;
      background: var(--primary);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; color: #fff;
    }

    .contact-card h3 {
      font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem;
    }

    .contact-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

    .contact-card a {
      display: inline-block; margin-top: 0.5rem;
      color: var(--secondary); font-weight: 600;
      font-size: 0.95rem; border: none;
    }

    /* ===== FOOTER ===== */
    footer {
      padding: 4rem 2rem 2rem;
      border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer-grid {
      max-width: 1400px; margin: 0 auto;
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem; margin-bottom: 3rem;
    }

    .footer-about h3 {
      font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .footer-about p { color: var(--text-light); line-height: 1.8; font-size: 0.93rem; }

    .footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

    .footer-social a {
      width: 40px; height: 40px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-light); text-decoration: none;
      transition: all 0.3s; font-size: 1rem;
    }

    .footer-links h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
    .footer-links ul { list-style: none; }
    .footer-links a {
      color: var(--text-light); text-decoration: none;
      display: block; padding: 0.5rem 0;
      font-size: 0.9rem; transition: color 0.3s;
    }
    .footer-links a:hover { color: var(--primary); border: none; }

    .footer-bottom {
      max-width: 1400px; margin: 0 auto;
      padding-top: 2rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      text-align: center; color: var(--text-muted);
      font-size: 0.87rem;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .policy-hero { padding: 8rem 1.25rem 3rem; }
      .policy-content { padding: 3rem 1.25rem 4rem; }
      .toc ol { grid-template-columns: 1fr; }
      .contact-card { flex-direction: column; text-align: center; }
      .footer-grid { grid-template-columns: 1fr; }
    }


/* ===== BLOG ==============================================================
   Built on the legal-page chrome so the nav, hero and footer are identical.
   Everything below is blog-only: the index cards and article typography.     */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .25s, transform .25s;
}
.post-card:hover { border-color: rgba(99,102,241,.45); transform: translateY(-3px); }

.post-card-link { display: block; padding: 1.75rem; text-decoration: none; border: none; }
.post-card-link h2 {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  margin: .6rem 0 .6rem; line-height: 1.35;
}
.post-card-link p { color: var(--text-light); font-size: .93rem; line-height: 1.7; margin: 0; }

.post-card-meta {
  display: flex; align-items: center; gap: .5rem;
  color: var(--text-muted); font-size: .8rem; letter-spacing: .02em;
}
.post-dot { opacity: .5; }

.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.post-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.28);
  color: #c7c9ff;
}

.post-card-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem; color: var(--secondary);
  font-size: .88rem; font-weight: 600;
}
.post-card-more i { font-size: .75rem; transition: transform .25s; }
.post-card:hover .post-card-more i { transform: translateX(3px); }

/* ----- article body: styles the HTML that markdown produces --------------- */
.post-body { color: var(--text-light); font-size: 1.02rem; line-height: 1.85; }
.post-body > *:first-child { margin-top: 0; }

.post-body h2 {
  color: #fff; font-size: 1.55rem; font-weight: 800;
  margin: 2.75rem 0 1rem; line-height: 1.3;
}
.post-body h3 {
  color: #fff; font-size: 1.18rem; font-weight: 700;
  margin: 2rem 0 .75rem;
}
.post-body p { margin-bottom: 1.15rem; }
.post-body ul, .post-body ol { margin: 0 0 1.3rem 1.25rem; }
.post-body li { margin-bottom: .55rem; }
.post-body strong { color: #fff; }

.post-body a {
  color: var(--secondary); text-decoration: none;
  border-bottom: 1px solid rgba(6,182,212,.3); transition: border-color .2s;
}
.post-body a:hover { border-color: var(--secondary); }

.post-body blockquote {
  margin: 1.75rem 0; padding: 1.15rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: rgba(99,102,241,.07);
  border-radius: 0 12px 12px 0;
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .87em; padding: .15em .4em; border-radius: 6px;
  background: rgba(255,255,255,.07); color: #e2e8f0;
}
.post-body pre {
  background: #0a1120; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem 1.25rem;
  overflow-x: auto; margin: 1.5rem 0;
}
.post-body pre code { background: none; padding: 0; font-size: .85rem; line-height: 1.7; }

.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }

.post-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem;
}
.post-body th, .post-body td {
  padding: .7rem .9rem; border-bottom: 1px solid var(--border); text-align: left;
}
.post-body th { color: #fff; font-weight: 700; }

.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* RTL: mirror the quote bar and list indent for Arabic. */
[dir="rtl"] .post-body blockquote {
  border-left: 0; border-right: 3px solid var(--primary);
  border-radius: 12px 0 0 12px;
}
[dir="rtl"] .post-body ul, [dir="rtl"] .post-body ol { margin: 0 1.25rem 1.3rem 0; }
[dir="rtl"] .post-body th, [dir="rtl"] .post-body td { text-align: right; }

@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: .98rem; }
  .post-body h2 { font-size: 1.35rem; }
}
