/* ==========================================================================
   css/pages/privacy.css
   Privacy Policy page styles.
   Depends on: variables.css, base.css, layout.css, components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Ambient blobs — positioned for privacy page
   -------------------------------------------------------------------------- */
.privacy-page .blob-a {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -160px;
  background: radial-gradient(circle, rgba(29, 198, 147, 0.18), transparent 70%);
}

.privacy-page .blob-b {
  width: 360px;
  height: 360px;
  top: 320px;
  right: -100px;
  background: radial-gradient(circle, rgba(134, 244, 209, 0.1), transparent 70%);
}

.privacy-page .blob-c {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(29, 198, 147, 0.08), transparent 70%);
}

/* --------------------------------------------------------------------------
   Page header — hero area for privacy page
   -------------------------------------------------------------------------- */
.privacy-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.privacy-hero .eyebrow {
  margin-bottom: 24px;
}

.privacy-hero-title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}

.privacy-hero-title .accent {
  color: var(--accent-2);
}

.privacy-hero-sub {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}

.privacy-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.privacy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.privacy-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Content body
   -------------------------------------------------------------------------- */
.privacy-body {
  padding-bottom: 100px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Sidebar / Table of Contents
   -------------------------------------------------------------------------- */
.privacy-toc {
  position: sticky;
  top: 120px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.privacy-toc-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.privacy-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.privacy-toc a:hover,
.privacy-toc a.active {
  color: var(--text);
  border-left-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */
.privacy-content {
  min-width: 0;
}

.privacy-section {
  margin-bottom: 48px;
  scroll-margin-top: 120px;
}

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

.privacy-section-card {
  position: relative;
  padding: 36px 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(5, 11, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 300ms ease;
}

.privacy-section-card:hover {
  border-color: rgba(29, 198, 147, 0.15);
}

/* Top-edge accent glow */
.privacy-section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 244, 209, 0.25), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.privacy-section-card:hover::before {
  opacity: 1;
}

/* Section number badge */
.privacy-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(29, 198, 147, 0.1);
  border: 1px solid rgba(29, 198, 147, 0.2);
  color: var(--accent-2);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}

.privacy-section-heading {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.privacy-section-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.privacy-section-text + .privacy-section-text {
  margin-top: 14px;
}

.privacy-section-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Data list — used for "What We Collect", "Why We Collect It", etc. */
.privacy-data-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-data-list li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  transition: background 200ms ease;
}

.privacy-data-list li:hover {
  background: rgba(255, 255, 255, 0.04);
}

.privacy-data-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 198, 147, 0.1);
}

.privacy-data-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* "Not collected" callout */
.privacy-callout {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(29, 198, 147, 0.15);
  background: rgba(29, 198, 147, 0.05);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.privacy-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-callout-title svg {
  width: 16px;
  height: 16px;
}

/* Retention table */
.privacy-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.privacy-table thead {
  background: rgba(255, 255, 255, 0.04);
}

.privacy-table th {
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-table td {
  padding: 12px 18px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.5;
}

.privacy-table tr:last-child td {
  border-bottom: none;
}

.privacy-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.privacy-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Security checklist */
.privacy-check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.privacy-check-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

/* Rights grid */
.privacy-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.privacy-right-card {
  padding: 18px 20px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 200ms ease, background 200ms ease;
}

.privacy-right-card:hover {
  border-color: rgba(29, 198, 147, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.privacy-right-name {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.privacy-right-desc {
  margin: 0;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* Contact card */
.privacy-contact-card {
  margin-top: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 198, 147, 0.2);
  background: linear-gradient(135deg, rgba(29, 198, 147, 0.06), rgba(134, 244, 209, 0.03));
}

.privacy-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.privacy-contact-row:last-child {
  margin-bottom: 0;
}

.privacy-contact-row svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.privacy-contact-row strong {
  color: var(--text);
  font-weight: 600;
}

.privacy-contact-row a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(134, 244, 209, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}

.privacy-contact-row a:hover {
  text-decoration-color: var(--accent-2);
}

/* Footer — reuses the home page footer */
.privacy-page .site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

/* Copyright bar */
.privacy-copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .privacy-toc {
    position: relative;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 18px 20px;
  }

  .privacy-toc-title {
    width: 100%;
    margin-bottom: 10px;
  }

  .privacy-toc a {
    padding: 6px 14px;
    border-left: none;
    border-radius: 999px;
    font-size: 12px;
  }

  .privacy-toc a:hover,
  .privacy-toc a.active {
    background: rgba(29, 198, 147, 0.1);
    border-left: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .privacy-hero {
    padding: 48px 0 32px;
  }

  .privacy-section-card {
    padding: 24px 20px;
  }

  .privacy-data-list li {
    padding: 12px 14px 12px 36px;
    font-size: 13px;
  }

  .privacy-data-list li::before {
    left: 14px;
    top: 17px;
    width: 6px;
    height: 6px;
  }

  .privacy-rights-grid {
    grid-template-columns: 1fr;
  }

  .privacy-table th,
  .privacy-table td {
    padding: 10px 14px;
    font-size: 13px;
  }

  .privacy-contact-card {
    padding: 20px;
  }

  .privacy-meta {
    gap: 8px;
  }

  .privacy-meta-item {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .privacy-hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .privacy-section-heading {
    font-size: clamp(20px, 5vw, 26px);
  }

  .privacy-section-card {
    padding: 20px 16px;
    border-radius: var(--radius-sm);
  }

  .privacy-toc {
    padding: 14px 16px;
  }
}
