:root {
  --primary: #6C5CE7;
  --secondary: #A29BFE;
  --background: #F8F7FF;
  --cards: #FFFFFF;
  --text: #2D3436;
  --text-light: #636e72;
  --border: #dfe6e9;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow-sm: 0 4px 6px rgba(108, 92, 231, 0.05);
  --shadow-md: 0 10px 30px rgba(108, 92, 231, 0.08);
  --shadow-lg: 0 20px 40px rgba(108, 92, 231, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for sticky nav */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; }
p { margin-bottom: 1.25rem; color: var(--text-light); }
ul, ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--text-light); }
li { margin-bottom: 0.5rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Header & Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 8rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--background);
  transform: skewY(-2deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.last-updated {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Main Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  position: relative;
  margin-top: -2rem;
  z-index: 2;
}

/* Sidebar Navigation */
.sidebar {
  position: sticky;
  top: 2rem;
  height: max-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: var(--cards);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.sidebar h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0;
}

.toc-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.toc-list a:hover {
  background: var(--background);
  color: var(--primary);
  transform: translateX(5px);
}

/* Main Content */
.content {
  padding-bottom: 5rem;
}

.policy-card {
  background: var(--cards);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.policy-section {
  margin-bottom: 3.5rem;
}

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

.policy-section h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-top: 0;
}

.policy-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Specific elements */
.highlight-box {
  background: rgba(108, 92, 231, 0.05);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.icon-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Contact Card */
.contact-card {
  background: var(--gradient);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-card h2, .contact-card p, .contact-card a {
  color: white;
}

.contact-card h2::after {
  display: none;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.9);
}

.email-btn {
  display: inline-block;
  background: white;
  color: var(--primary) !important;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    max-height: none;
    margin-bottom: 2rem;
  }
  
  .container {
    margin-top: -4rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 4rem;
  }
  
  .policy-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
}
