*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  background: 
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    #f8fafc;
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.cookie-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}

.cookie-hero {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease-out;
}

.cookie-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cookie-hero .effective {
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.cookie-hero .subtitle {
  font-size: 1.25rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

.cookie-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: flex-start;
}

.cookie-sidebar {
  position: sticky;
  top: 120px;
  background: white;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cookie-sidebar .sidebar-link {
  display: block;
  padding: 12px 16px;
  color: #64748b;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.cookie-sidebar .sidebar-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  padding-left: 20px;
}

.cookie-sidebar .sidebar-link.active {
  background: #0f172a;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

.cookie-content {
  background: white;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.section-card {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-card h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: #3b82f6;
  border-radius: 2px;
}

.section-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 32px 0 16px;
}

.section-card p {
  color: #475569;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.section-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.section-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #475569;
}

.section-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.cookie-jump {
  display: none;
  margin-bottom: 24px;
}

.cookie-jump label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

.cookie-jump select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  font-size: 1rem;
  color: #0f172a;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .cookie-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cookie-sidebar {
    display: none;
  }

  .cookie-jump {
    display: block;
  }

  .cookie-hero h1 {
    font-size: 2.75rem;
  }

  .cookie-content {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .cookie-hero h1 {
    font-size: 2.25rem;
  }
  
  .cookie-content {
    padding: 24px;
  }
}
