/* ==========================================================================
   RENTERA — Privacy Policy Page Styles
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700&display=swap');

/* ---------- Design Tokens (same as main site) ---------- */
:root {
  --brand-primary: #1F244B;
  --brand-dark: #1c1c1c;
  --primary-500: #2147F6;
  --primary-400: #5b7bff;
  --primary-600: #10002b;
  --text-secondary: #64748B;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ls-tight: -0.02em;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--brand-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
}

/* ---------- Aurora Background ---------- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.aurora-bg .blob--1 {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: radial-gradient(ellipse at 30% 30%, rgba(33,71,246,0.06), transparent 70%);
  animation: blobDrift1 20s ease-in-out infinite alternate;
}

.aurora-bg .blob--2 {
  width: 500px;
  height: 500px;
  top: 50%;
  right: -10%;
  background: radial-gradient(ellipse at 60% 50%, rgba(33,71,246,0.04), transparent 70%);
  animation: blobDrift2 24s ease-in-out infinite alternate;
}

.aurora-bg .blob--3 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: 20%;
  background: radial-gradient(ellipse at 40% 60%, rgba(91,123,255,0.04), transparent 70%);
  animation: blobDrift3 18s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes blobDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.05); }
}
@keyframes blobDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -25px) scale(1.06); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(255, 255, 255, 0.92);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-500);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(33,71,246,0.2);
  transition: all 0.2s;
}

.nav-back:hover {
  background: rgba(33,71,246,0.06);
  border-color: var(--primary-500);
}

/* ---------- Language Switcher ---------- */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-light);
}

.lang-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-link:hover {
  color: var(--primary-500);
  background: rgba(33,71,246,0.06);
}

.lang-link.active {
  color: #fff;
  background: var(--primary-500);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Page Layout ---------- */
.privacy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* ---------- Sticky Sidebar ---------- */
.toc-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
}

.toc-sidebar::-webkit-scrollbar {
  width: 3px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 16px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--brand-primary);
  background: rgba(33,71,246,0.04);
}

.toc-link.active {
  color: var(--primary-500);
  background: rgba(33,71,246,0.06);
  border-left-color: var(--primary-500);
  font-weight: 600;
}

/* ---------- Mobile TOC ---------- */
.mobile-toc {
  display: none;
  position: sticky;
  top: 66px;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  margin: 0 -16px;
  padding: 0 16px;
}

.mobile-toc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toc-btn .arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.mobile-toc.open .mobile-toc-btn .arrow {
  transform: rotate(180deg);
}

.mobile-toc-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-toc.open .mobile-toc-list {
  max-height: 600px;
}

.mobile-toc-list a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 0;
  border-top: 1px solid rgba(226,232,240,0.5);
  transition: color 0.2s;
}

.mobile-toc-list a:last-child {
  padding-bottom: 14px;
}

.mobile-toc-list a:hover,
.mobile-toc-list a.active {
  color: var(--primary-500);
}

/* ---------- Content Area ---------- */
.privacy-content {
  max-width: 800px;
}

.privacy-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.privacy-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
  color: var(--brand-primary);
}

.privacy-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.privacy-meta svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* ---------- Privacy Sections ---------- */
.privacy-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.privacy-section h2 {
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.privacy-section h3 {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.privacy-section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.privacy-section ul {
  margin: 12px 0;
  padding-left: 0;
}

.privacy-section ul li {
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 6px 0 6px 24px;
}

.privacy-section ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--primary-500);
  border-radius: 50%;
  opacity: 0.5;
}

.privacy-section a {
  color: var(--primary-500);
  font-weight: 600;
  transition: opacity 0.2s;
}

.privacy-section a:hover {
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.footer {
  background: #0f0f23;
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner span {
  font-size: 0.8125rem;
}

.footer-inner a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: #fff;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 80px;
  }

  .toc-sidebar {
    display: none;
  }

  .mobile-toc {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .privacy-header h1 {
    font-size: 1.5rem;
  }

  .privacy-section h2 {
    font-size: 1.125rem;
  }
}
